Date: Thu, 20 Oct 2005 05:12:21 +0000 (UTC) From: Nate Lawson <njl@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/powerd powerd.c Message-ID: <200510200512.j9K5CM7G061648@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510200512.j9K5CM7G061648>
