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=34714af37d83d62189cda12ff336acbaf7f6a812;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; } }