Module Name:    src
Committed By:   nia
Date:           Sat Oct 30 11:41:45 UTC 2021

Modified Files:
        src/usr.sbin/rpcbind: rpcb_svc_com.c

Log Message:
rpcbind(8): restore previous behaviour. Wait instead of breaking from
the loop if svc_fdset_getmax fails.

thanks rin.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.sbin/rpcbind/rpcb_svc_com.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/rpcbind/rpcb_svc_com.c
diff -u src/usr.sbin/rpcbind/rpcb_svc_com.c:1.26 src/usr.sbin/rpcbind/rpcb_svc_com.c:1.27
--- src/usr.sbin/rpcbind/rpcb_svc_com.c:1.26	Sat Oct 30 11:04:48 2021
+++ src/usr.sbin/rpcbind/rpcb_svc_com.c	Sat Oct 30 11:41:45 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: rpcb_svc_com.c,v 1.26 2021/10/30 11:04:48 nia Exp $	*/
+/*	$NetBSD: rpcb_svc_com.c,v 1.27 2021/10/30 11:41:45 nia Exp $	*/
 /*	$FreeBSD: head/usr.sbin/rpcbind/rpcb_svc_com.c 301770 2016-06-09 22:25:00Z pfg $ */
 
 /*-
@@ -1122,6 +1122,7 @@ my_svc_run(void)
 		if (newfdcount != npollfds) {
 			if (reallocarr(&pollfds,
 			    newfdcount, sizeof(*pollfds)) != 0) {
+wait:
 				syslog(LOG_ERR, "Cannot allocate pollfds");
 				sleep(1);
 				continue;
@@ -1130,7 +1131,7 @@ my_svc_run(void)
 		}
 		p = pollfds;
 		if ((m = svc_fdset_getmax()) == NULL)
-			break;
+			goto wait;
 		for (n = 0; n <= *m; n++) {
 			if (svc_fdset_isset(n)) {
 				p->fd = n;

Reply via email to