From: Andrew Bays Date: Fri, 19 Oct 2018 14:05:30 +0000 (-0400) Subject: Handled interrupted socket reads X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=06936565d7bf432e9ce7592eee92af05176267a7;p=collectd.git Handled interrupted socket reads --- diff --git a/src/procevent.c b/src/procevent.c index 38c3fd1e..850f7742 100644 --- a/src/procevent.c +++ b/src/procevent.c @@ -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; } }