Handled interrupted socket reads
[collectd.git] / src / connectivity.c
index 45b65aa..ca7b286 100644 (file)
@@ -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;