Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/usr.sbin/ypbind Pull up revision 1.48 (requested by bou...
details: https://anonhg.NetBSD.org/src/rev/de53365c7b51
branches: netbsd-1-6
changeset: 530651:de53365c7b51
user: tron <tron%NetBSD.org@localhost>
date: Fri Sep 05 18:15:42 2003 +0000
description:
Pull up revision 1.48 (requested by bouyer in ticket #1449):
width needs to be updated before each loop, because svc_maxfd may have
changed.
diffstat:
usr.sbin/ypbind/ypbind.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diffs (39 lines):
diff -r d421b19428dd -r de53365c7b51 usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c Fri Sep 05 13:53:00 2003 +0000
+++ b/usr.sbin/ypbind/ypbind.c Fri Sep 05 18:15:42 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ypbind.c,v 1.46 2001/02/19 23:22:50 cgd Exp $ */
+/* $NetBSD: ypbind.c,v 1.46.2.1 2003/09/05 18:15:42 tron Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.46 2001/02/19 23:22:50 cgd Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.46.2.1 2003/09/05 18:15:42 tron Exp $");
#endif
#include <sys/param.h>
@@ -600,14 +600,13 @@
checkwork();
- width = svc_maxfd;
- if (rpcsock > width)
- width = rpcsock;
- if (pingsock > width)
- width = pingsock;
- width++;
-
for (;;) {
+ width = svc_maxfd;
+ if (rpcsock > width)
+ width = rpcsock;
+ if (pingsock > width)
+ width = pingsock;
+ width++;
fdsr = svc_fdset;
FD_SET(rpcsock, &fdsr);
FD_SET(pingsock, &fdsr);
Home |
Main Index |
Thread Index |
Old Index