From a9f9dc60152cf829b4246b8b1851c8735d05415d Mon Sep 17 00:00:00 2001 From: Andrew Bays Date: Fri, 19 Oct 2018 10:05:44 -0400 Subject: [PATCH] Handled interrupted socket reads --- src/connectivity.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/connectivity.c b/src/connectivity.c index 45b65aab..ca7b2864 100644 --- a/src/connectivity.c +++ b/src/connectivity.c @@ -534,6 +534,12 @@ static int read_event(int (*msg_handler)(struct nlmsghdr *)) { continue; } + if (errno == EINTR) + { + // Interrupt, so just return + return 0; + } + /* Anything else is an error */ ERROR("connectivity plugin: read_event: Error recv: %d", status); return status; -- 2.11.0