From: Paul Mackerras Date: Sat, 22 Oct 1994 11:49:27 +0000 (+0000) Subject: cope with EINTR from read X-Git-Tag: RELEASE_2_3_6~836 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=d4e349b88a33ff161f21409035620955c193b1ee;ds=inline cope with EINTR from read --- diff --git a/pppd/sys-str.c b/pppd/sys-str.c index 04a8816..4c07adf 100644 --- a/pppd/sys-str.c +++ b/pppd/sys-str.c @@ -19,7 +19,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-str.c,v 1.14 1994/09/21 06:47:37 paulus Exp $"; +static char rcsid[] = "$Id: sys-str.c,v 1.15 1994/10/22 11:49:27 paulus Exp $"; #endif /* @@ -523,7 +523,7 @@ read_packet(buf) i = 0; len = getmsg(fd, &ctl, &str, &i); if (len < 0) { - if (errno == EAGAIN || errno == EWOULDBLOCK) { + if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR) { return -1; } syslog(LOG_ERR, "getmsg(fd) %m");