I agree with Markus that closing all file descriptors in all daemons is retarded. It is not defensive. It is a waste of time. That said, the file descriptor handling code, especially the fd_set padding, was written to be very careful. Please submit real bug reports, not "defensive programming" discussions.