]> diplodocus.org Git - nmh/commit
Apparently on Linux if a slave pty is closed, instead of the master
authorKen Hornstein <kenh@pobox.com>
Thu, 18 May 2017 01:40:57 +0000 (21:40 -0400)
committerKen Hornstein <kenh@pobox.com>
Thu, 18 May 2017 01:40:57 +0000 (21:40 -0400)
commitd11f8c6ba92fc28c3ea4d76676ff7d5148c36d7d
tree77826562e59d8794d4e5fd5fdd8a0117ea97a031
parent0f0e60a8f2e21a37624d45af4b0b168477fe6f67
Apparently on Linux if a slave pty is closed, instead of the master
getting an EOF they get an EIO, which strikes me as unfriendly.  So
make sure we exit the main read loop without complaint on an EOF or
error.
test/runpty.c