]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Handled interrupted socket reads
authorAndrew Bays <abays@redhat.com>
Fri, 19 Oct 2018 14:05:44 +0000 (10:05 -0400)
committerAndrew Bays <andrew.bays@gmail.com>
Thu, 5 Sep 2019 13:21:22 +0000 (09:21 -0400)
src/connectivity.c

index ec2f7e38631dce51f20da2bf743a3db37812bbb1..c470c9957c792fcdb7751712ff640f4597d455a9 100644 (file)
@@ -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;