]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/svc_run.c
Remove notify functionality from statd in favour of sm-notify
[nfs-utils.git] / utils / statd / svc_run.c
index e2d7c975df91a7014e55de09277ac833d0558f76..a33da0d634289ae979500b778b1fc79568d41472 100644 (file)
  * This is the RPC server side idle loop.
  * Wait for input, call server program.
  */
-#include "config.h"
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <errno.h>
 #include <time.h>
 #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)) {
@@ -118,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: