diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-02-05 14:46:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-02-05 14:46:39 +0000 |
commit | 34d8a551528a9fae8e89c85feafd082ac2fd0f62 (patch) | |
tree | d358301e960aa42519333592ff8a610092512b43 /usr.sbin | |
parent | c68ad724c11b42d57b69ac87922c2ff098b21037 (diff) |
always double check the work you do in a 757 over northern Brazil.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ypserv/yppush/yppush.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ypserv/yppush/yppush.c b/usr.sbin/ypserv/yppush/yppush.c index 3f793503991..899a44222c3 100644 --- a/usr.sbin/ypserv/yppush/yppush.c +++ b/usr.sbin/ypserv/yppush/yppush.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yppush.c,v 1.13 2001/01/11 23:38:07 deraadt Exp $ */ +/* $OpenBSD: yppush.c,v 1.14 2001/02/05 14:46:38 deraadt Exp $ */ /* * Copyright (c) 1995 Mats O Jansson <moj@stacken.kth.se> @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: yppush.c,v 1.13 2001/01/11 23:38:07 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: yppush.c,v 1.14 2001/02/05 14:46:38 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -100,7 +100,7 @@ _svc_run() bcopy(__svc_fdset, readfdsp, howmany(__svc_fdsetsize, NFDBITS) * sizeof(fd_mask)); - switch (select(svc_maxfd, readfdsp, NULL, + switch (select(svc_maxfd+1, readfdsp, NULL, NULL, &timeout)) { case -1: if (errno == EINTR) @@ -111,7 +111,7 @@ _svc_run() fprintf(stderr, "yppush: Callback timed out.\n"); exit(0); default: - svc_getreqset(readfdsp); + svc_getreqset2(readfdsp, svc_maxfd+1); break; } } |