X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fstatd%2Fsvc_run.c;h=a33da0d634289ae979500b778b1fc79568d41472;hb=4b2f63a5e581ecfa12abb2419310c4e62eb27134;hp=7b69dc8938e744dcc0161026adbc356382df0eb7;hpb=8d926d3defedf7bb82c2f3f9fd1746fb0d0b968a;p=nfs-utils.git diff --git a/utils/statd/svc_run.c b/utils/statd/svc_run.c index 7b69dc8..a33da0d 100644 --- a/utils/statd/svc_run.c +++ b/utils/statd/svc_run.c @@ -47,7 +47,11 @@ * This is the RPC server side idle loop. * Wait for input, call server program. */ -#include "config.h" + +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include "statd.h" @@ -60,7 +64,6 @@ static int svc_stop = 0; * requests are put. */ notify_list * notify = NULL; -int re_notify = 0; /* * Jump-off function. @@ -87,10 +90,6 @@ my_svc_run(void) for (;;) { if (svc_stop) return; - if (re_notify) { - notify_hosts(); - re_notify = 0; - } /* Ah, there are some notifications to be processed */ while (notify && NL_WHEN(notify) <= time(&now)) { @@ -107,9 +106,7 @@ my_svc_run(void) tv.tv_sec); selret = select(FD_SETSIZE, &readfds, (void *) 0, (void *) 0, &tv); - } else if (run_mode & MODE_NOTIFY_ONLY) - return; - else { + } else { dprintf(N_DEBUG, "Waiting for client connections."); selret = select(FD_SETSIZE, &readfds, (void *) 0, (void *) 0, (struct timeval *) 0); @@ -120,7 +117,8 @@ my_svc_run(void) if (errno == EINTR || errno == ECONNREFUSED || errno == ENETUNREACH || errno == EHOSTUNREACH) continue; - note(N_ERROR, "my_svc_run() - select: %m"); + note(N_ERROR, "my_svc_run() - select: %s", + strerror (errno)); return; case 0: