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:
parent
bdd382022d
commit
19b815a645
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user