X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fconnectivity.c;h=c470c9957c792fcdb7751712ff640f4597d455a9;hp=ec2f7e38631dce51f20da2bf743a3db37812bbb1;hb=f614051d01f19146c9b2edce456c443c5fcdd884;hpb=f3f3b71f2088037c9f36c52d0cecc2fd1c769531 diff --git a/src/connectivity.c b/src/connectivity.c index ec2f7e38..c470c995 100644 --- a/src/connectivity.c +++ b/src/connectivity.c @@ -558,6 +558,12 @@ static int read_event(int nl, 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;