If you used tip to start SLIP, tip would fail to write to the tty

after slattach was started.  Now tip knows to die when it gets ENODEV...
This commit is contained in:
Poul-Henning Kamp 1994-09-25 03:59:03 +00:00
parent bdd382022d
commit 19b815a645
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3080

View File

@ -558,6 +558,8 @@ pwrite(fd, buf, n)
if (write(fd, buf, n) < 0) {
if (errno == EIO)
tipabort("Lost carrier.");
if (errno == ENODEV)
tipabort("tty not available.");
/* this is questionable */
perror("write");
}