diff options
| author | 1998-05-05 03:29:49 +0000 | |
|---|---|---|
| committer | 1998-05-05 03:29:49 +0000 | |
| commit | 20468d598c7c8a88c3f9b5964284a9ec1cb52d8c (patch) | |
| tree | 3b6a5aee3999471aa09d23b16f621e8e73a90694 /usr.sbin/syslogd/syslogd.c | |
| parent | use binutils for hppa (diff) | |
| download | wireguard-openbsd-20468d598c7c8a88c3f9b5964284a9ec1cb52d8c.tar.xz wireguard-openbsd-20468d598c7c8a88c3f9b5964284a9ec1cb52d8c.zip | |
select on nfds+1, not nfds. ficus@openbsd.org
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
| -rw-r--r-- | usr.sbin/syslogd/syslogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index e0d756a7a33..87552eee18f 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -356,7 +356,7 @@ main(argc, argv) } /*dprintf("readfds = %#x\n", readfds);*/ - nfds = select(nfds, &readfds, (fd_set *)NULL, + nfds = select(nfds+1, &readfds, (fd_set *)NULL, (fd_set *)NULL, (struct timeval *)NULL); if (nfds == 0) continue; |
