diff options
author | yar <yar@FreeBSD.org> | 2003-07-09 13:15:32 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2003-07-09 13:15:32 +0000 |
commit | 94167f7347294d2c3505132eb74cae8b085df169 (patch) | |
tree | df946080d08dcec7ed9e019f4f80ffabe460c224 /lib/libpthread/thread/thr_sigwait.c | |
parent | b42549b7254aedb1859a96651fcc28cfd9679459 (diff) | |
download | FreeBSD-src-94167f7347294d2c3505132eb74cae8b085df169.zip FreeBSD-src-94167f7347294d2c3505132eb74cae8b085df169.tar.gz |
Improve error handling in getline():
- always check the return value from getc(3) for EOF;
- if the attempt to read the TELNET command byte has
returned EOF, exit from the loop instead of using
the EOF value as a normal character.
MFC after: 1 week
Diffstat (limited to 'lib/libpthread/thread/thr_sigwait.c')
0 files changed, 0 insertions, 0 deletions