Blame SOURCES/ntp-4.2.6p5-netlinknobuf.patch

9e87e2
Author:  <stenn@psp-at1.ntp.org>
9e87e2
Date:   Fri Jul 31 07:58:11 2015 +0000
9e87e2
9e87e2
    [Bug 2890] Ignore ENOBUFS on routing netlink socket.  Konstantin Khlebnikov.
9e87e2
9e87e2
diff -up ntp-4.2.6p5/ntpd/ntp_io.c.netlinknobuf ntp-4.2.6p5/ntpd/ntp_io.c
9e87e2
--- ntp-4.2.6p5/ntpd/ntp_io.c.netlinknobuf	2019-01-11 12:34:09.115195268 +0100
9e87e2
+++ ntp-4.2.6p5/ntpd/ntp_io.c	2019-01-11 12:34:21.356195246 +0100
9e87e2
@@ -4480,10 +4480,15 @@ process_routing_msgs(struct asyncio_read
9e87e2
 	cnt = read(reader->fd, buffer, sizeof(buffer));
9e87e2
 	
9e87e2
 	if (cnt < 0) {
9e87e2
-		msyslog(LOG_ERR,
9e87e2
-			"i/o error on routing socket %m - disabling");
9e87e2
-		remove_asyncio_reader(reader);
9e87e2
-		delete_asyncio_reader(reader);
9e87e2
+		if (errno == ENOBUFS) {
9e87e2
+			msyslog(LOG_ERR,
9e87e2
+				"routing socket reports: %m");
9e87e2
+		} else {
9e87e2
+			msyslog(LOG_ERR,
9e87e2
+				"routing socket reports: %m - disabling");
9e87e2
+			remove_asyncio_reader(reader);
9e87e2
+			delete_asyncio_reader(reader);
9e87e2
+		}
9e87e2
 		return;
9e87e2
 	}
9e87e2