From: Gerrie Roos Date: Tue, 17 Apr 2012 13:22:36 +0000 (+0200) Subject: Fixed collectd's unixsock read interrupted by SIGCHLD's. X-Git-Tag: collectd-5.0.5~4^2~16 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=932048e614c6602159cdfc0580f296f74af46227;p=collectd.git Fixed collectd's unixsock read interrupted by SIGCHLD's. Signed-off-by: Florian Forster --- diff --git a/src/unixsock.c b/src/unixsock.c index 34442471..35c77121 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -225,6 +225,9 @@ static void *us_handle_client (void *arg) errno = 0; if (fgets (buffer, sizeof (buffer), fhin) == NULL) { + if ((errno == EINTR) || (errno == EAGAIN)) + continue; + if (errno != 0) { char errbuf[1024];