From 932048e614c6602159cdfc0580f296f74af46227 Mon Sep 17 00:00:00 2001 From: Gerrie Roos Date: Tue, 17 Apr 2012 15:22:36 +0200 Subject: [PATCH] Fixed collectd's unixsock read interrupted by SIGCHLD's. Signed-off-by: Florian Forster --- src/unixsock.c | 3 +++ 1 file changed, 3 insertions(+) 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]; -- 2.11.0