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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3080
@ -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