summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-08-12 20:44:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-08-12 20:44:58 +0000
commit236ee341c1bccfcf542e5a3bf0d609cb08308b50 (patch)
tree5556ecd64a02d7a9b42cca208412350d884fb163 /share
parent038533e30c93934d790f69ab83bff1fa60436fa5 (diff)
Don't tell people to use FD_SETSIZE as the first argument to select().
This section should really be completely rewritten.
Diffstat (limited to 'share')
-rw-r--r--share/doc/psd/21.ipc/2.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/doc/psd/21.ipc/2.t b/share/doc/psd/21.ipc/2.t
index 79a8569278f..082def348a8 100644
--- a/share/doc/psd/21.ipc/2.t
+++ b/share/doc/psd/21.ipc/2.t
@@ -1,4 +1,4 @@
-.\" $OpenBSD: 2.t,v 1.4 2003/06/02 23:30:10 millert Exp $
+.\" $OpenBSD: 2.t,v 1.5 2003/08/12 20:44:57 millert Exp $
.\"
.\" Copyright (c) 1986, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -683,7 +683,7 @@ for (;;) {
FD_SET(s1, &read_template);
FD_SET(s2, &read_template);
- nb = select(FD_SETSIZE, &read_template, (fd_set *) 0, (fd_set *) 0, &wait);
+ nb = select(MAX(s1, s2) + 1, &read_template, NULL, NULL, &wait);
if (nb <= 0) {
\fIAn error occurred during the \fPselect\fI, or
the \fPselect\fI timed out.\fP