From b8cc21dc5430e6452b4cae5a84cd1921fa941f19 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 20 Jan 1999 00:01:25 +0000 Subject: [PATCH 1/1] don't die on write errors to the link --- pppd/sys-linux.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); } } } -- 2.39.2