Re: close(2) return value handling

2020-02-25 Thread Theo de Raadt
Matthias wrote: > Just curious why you never check the return value of the close(2) system > call for errors. It never fails in a way that matters. The program must be properly written for the fd to be alive, so EBADF doesn't occur. EINTR doesn't occur, and if it did, nowhere is it cleanly spe

close(2) return value handling

2020-02-25 Thread Matthias
Hi. Just curious why you never check the return value of the close(2) system call for errors. Thanks.