Note that fileno() does not set errno so you should probably set
errno to EBADF before the calls to warn() or err().

 - todd

Reply via email to