Code

apcups branch: Fixed the behavior of `sread'.
authorocto <octo>
Sat, 10 Jun 2006 12:59:43 +0000 (12:59 +0000)
committerocto <octo>
Sat, 10 Jun 2006 12:59:43 +0000 (12:59 +0000)
commited56e29953fc60756ebfee89423fc72347a41dba
tree28847218a5f8fc5712d26f06a9f8e3b957b0abbb
parent03e31c0f58be4954fee95acaf5b9311959ce850d
apcups branch: Fixed the behavior of `sread'.

If `sread' receives an EOF it will now close the file descriptor and return an
error. Prior to this revision it would try to read again and possibly fail
then.. Alternatively it might have crashed, who knows..? ;)
src/common.c
src/common.h