Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rpcbind rpcbind(8): restore previous behaviour. Wai...



details:   https://anonhg.NetBSD.org/src/rev/b66d0a99aca2
branches:  trunk
changeset: 990568:b66d0a99aca2
user:      nia <nia%NetBSD.org@localhost>
date:      Sat Oct 30 11:41:45 2021 +0000

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

thanks rin.

diffstat:

 usr.sbin/rpcbind/rpcb_svc_com.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7bc80870f0ce -r b66d0a99aca2 usr.sbin/rpcbind/rpcb_svc_com.c
--- a/usr.sbin/rpcbind/rpcb_svc_com.c   Sat Oct 30 11:37:38 2021 +0000
+++ b/usr.sbin/rpcbind/rpcb_svc_com.c   Sat Oct 30 11:41:45 2021 +0000
@@ -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 @@
                if (newfdcount != npollfds) {
                        if (reallocarr(&pollfds,
                            newfdcount, sizeof(*pollfds)) != 0) {
+wait:
                                syslog(LOG_ERR, "Cannot allocate pollfds");
                                sleep(1);
                                continue;
@@ -1130,7 +1131,7 @@
                }
                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;



Home | Main Index | Thread Index | Old Index