From: Fredrik Tolf Date: Tue, 31 Aug 2010 21:06:47 +0000 (+0200) Subject: patplex: Don't quit from recvreq on EINTR. X-Git-Tag: 0.1~49 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=6174a0392d661ea7cba3cd90ff35ced3b518ca87 patplex: Don't quit from recvreq on EINTR. --- diff --git a/src/patplex.c b/src/patplex.c index 3f22d73..d296e04 100644 --- a/src/patplex.c +++ b/src/patplex.c @@ -519,6 +519,8 @@ int main(int argc, char **argv) reload = 0; } if((fd = recvreq(0, &req)) < 0) { + if(errno == EINTR) + continue; if(errno != 0) flog(LOG_ERR, "recvreq: %s", strerror(errno)); break;