Handled interrupted socket reads
authorAndrew Bays <abays@redhat.com>
Fri, 19 Oct 2018 14:05:30 +0000 (10:05 -0400)
committerAndrew Bays <andrew.bays@gmail.com>
Wed, 4 Sep 2019 19:50:44 +0000 (15:50 -0400)
src/procevent.c

index 38c3fd1..850f774 100644 (file)
@@ -789,6 +789,9 @@ static int read_event() {
       } else if (errno != EINTR) {
         ERROR("procevent plugin: socket receive error: %d", errno);
         return -1;
+      } else {
+        // Interrupt, so just return
+        return 0;
       }
     }