From: Paul Mackerras Date: Wed, 20 Jan 1999 00:01:25 +0000 (+0000) Subject: don't die on write errors to the link X-Git-Tag: RELEASE_2_3_6~38 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=b8cc21dc5430e6452b4cae5a84cd1921fa941f19 don't die on write errors to the link --- diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 280ce89..abe71ce 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -808,14 +808,13 @@ void output (int unit, unsigned char *p, int len) if (write(ppp_fd, p, len) < 0) { if (errno == EWOULDBLOCK || errno == ENOBUFS - || errno == ENXIO || errno == EIO) + || errno == ENXIO || errno == EIO || errno == EINTR) { - syslog(LOG_WARNING, "write: warning: %m(%d)", errno); + syslog(LOG_WARNING, "write: warning: %m (%d)", errno); } else { - syslog(LOG_ERR, "write: %m(%d)", errno); - die(1); + syslog(LOG_ERR, "write: %m (%d)", errno); } } }