Close all file descriptors before daemonizing
Brought to you by:
const_k
This patch makes sure that all file descriptors (not just 0,1,2) are closed before going into background mode. This is done to prevent vncreflector from interfering with file descriptors from a parent process (an example of this problem was for reported here: http://www.techlists.org/archives/web/apache-users/2006-07/msg00583.shtml\)
Close file descritors patch, version 2