X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fconnectivity.c;fp=src%2Fconnectivity.c;h=ca7b28642a5372f3d4c7508a6f26a83808419bdc;hb=a9f9dc60152cf829b4246b8b1851c8735d05415d;hp=45b65aab5b09c1c5ba35110bbff618f6144de153;hpb=2301c142f2e1ae4d3d765d4f08fc8caa838a9e44;p=collectd.git 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;