]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 110] Don't log EINTR return from select()
authorHarlan Stenn <stenn@ntp.org>
Thu, 12 Jun 2003 06:43:58 +0000 (02:43 -0400)
committerHarlan Stenn <stenn@ntp.org>
Thu, 12 Jun 2003 06:43:58 +0000 (02:43 -0400)
bk: 3ee8212eAhxMZqNX1nSzjpmnNPO7dQ

ntpd/ntp_io.c

index 3b3d0c2fb76e67574f48cdd785cb0c07dc6c112d..6b303fe5855c16b44dbf1cfc018d43e29f350b4b 100644 (file)
@@ -1537,8 +1537,11 @@ input_handler(
                        /*
                         * extended FAU debugging output
                         */
-                       msyslog(LOG_ERR, "select(%d, %s, 0L, 0L, &0.000000) error: %m",
-                               maxactivefd+1, fdbits(maxactivefd, &activefds));
+                       if (err != EINTR)
+                           msyslog(LOG_ERR,
+                                   "select(%d, %s, 0L, 0L, &0.0) error: %m",
+                                   maxactivefd+1,
+                                   fdbits(maxactivefd, &activefds));
                        if (err == EBADF) {
                                int j, b;