Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/ntp/dist/ntpd ntpd: ignore errno EINTR on reads...



details:   https://anonhg.NetBSD.org/src/rev/92dfc0509cd8
branches:  trunk
changeset: 950784:92dfc0509cd8
user:      roy <roy%NetBSD.org@localhost>
date:      Sun Jan 31 08:27:49 2021 +0000

description:
ntpd: ignore errno EINTR on reads from the routing socket

diffstat:

 external/bsd/ntp/dist/ntpd/ntp_io.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e442dd93226b -r 92dfc0509cd8 external/bsd/ntp/dist/ntpd/ntp_io.c
--- a/external/bsd/ntp/dist/ntpd/ntp_io.c       Sun Jan 31 08:26:47 2021 +0000
+++ b/external/bsd/ntp/dist/ntpd/ntp_io.c       Sun Jan 31 08:27:49 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntp_io.c,v 1.30 2021/01/31 08:26:47 roy Exp $  */
+/*     $NetBSD: ntp_io.c,v 1.31 2021/01/31 08:27:49 roy Exp $  */
 
 /*
  * ntp_io.c - input/output routines for ntpd.  The socket-opening code
@@ -4741,7 +4741,7 @@
                                cnt = read(reader->fd, buffer, sizeof(buffer));
                        } while (cnt != -1 || errno == ENOBUFS);
                        timer_interfacetimeout(current_time + UPDATE_GRACE);
-               } else {
+               } else if (errno != EINTR) {
                        msyslog(LOG_ERR,
                                "routing socket reports: %m - disabling");
                        remove_asyncio_reader(reader);



Home | Main Index | Thread Index | Old Index