K 10 svn:author V 3 njl K 8 svn:date V 27 2005-10-20T05:12:20.000000Z K 7 svn:log V 330 Set the signal handlers before creating the thread. This is so it inherits the parent's signal mask. Once daemon() forked, signals would be ignored in the child thread. While I'm here, check the return value of daemon(). This fixes termination in the daemon case (bug introduced in last commit). Noticed by: Frederik Lindberg END