cvs commit: src/usr.sbin/powerd powerd.c
Nate Lawson
njl at FreeBSD.org
Wed Oct 19 22:12:23 PDT 2005
njl 2005-10-20 05:12:20 UTC
FreeBSD src repository
Modified files:
usr.sbin/powerd powerd.c
Log:
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
Revision Changes Path
1.14 +15 -4 src/usr.sbin/powerd/powerd.c
More information about the cvs-src
mailing list