summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_sigwait.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2003-07-09 13:15:32 +0000
committeryar <yar@FreeBSD.org>2003-07-09 13:15:32 +0000
commit94167f7347294d2c3505132eb74cae8b085df169 (patch)
treedf946080d08dcec7ed9e019f4f80ffabe460c224 /lib/libpthread/thread/thr_sigwait.c
parentb42549b7254aedb1859a96651fcc28cfd9679459 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud