don't die on write errors to the link
authorPaul Mackerras <paulus@samba.org>
Wed, 20 Jan 1999 00:01:25 +0000 (00:01 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 20 Jan 1999 00:01:25 +0000 (00:01 +0000)
pppd/sys-linux.c

index 280ce890b1db45d2a422db65f0f77f067b61c15f..abe71ce58cec1098533a020fb9b4861e0b93fdcc 100644 (file)
@@ -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);
          }
       }
   }