Additionally I shifted the resposibility of daemonizing to start-stop-daemon. This gets around the problem with DEBCONF_REDIR in a cleaner way, as start-stop-daemon can just close all filehandles before before execing hipdnsproxy. When forking in python code I never could track all the open filehandles and be certain that I didn't step on some other code's toes. So I had to special case for DEBCONF_REDIR.
I can just as easily shift the job back to hipdnsproxy, I just wanted to properly explore the options.
Done, review is pending.
Additionally I shifted the resposibility of daemonizing to start-stop-daemon. This gets around the problem with DEBCONF_REDIR in a cleaner way, as start-stop-daemon can just close all filehandles before before execing hipdnsproxy. When forking in python code I never could track all the open filehandles and be certain that I didn't step on some other code's toes. So I had to special case for DEBCONF_REDIR.
I can just as easily shift the job back to hipdnsproxy, I just wanted to properly explore the options.