• Iustin Pop's avatar
    Allow utils.Daemonize() to not close some fds · 8ff612c2
    Iustin Pop authored
    This patch implements an optional parameter to utils.Daemonize() which
    allows that function to not close some file descriptors.
    This will allow the master daemon to open the listening socket before
    fork - in order to be able to notify errors and return a meaningful exit
    code, and then when we fork we don't close that fd.
    Reviewed-by: imsnah