Subject: Re: SIGPWR not handled by init?
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: Martin Husemann <martin@duskware.de>
List: tech-userlevel
Date: 07/06/2006 23:59:48
On Thu, Jul 06, 2006 at 02:52:53PM -0700, Garrett D'Amore wrote:
> I noticed that init on NetBSD doesn't seem to handle SIGPWR reasonably. 
> This is unfortunate, because init could be used to initiate a "safe"
> shutdown, switching run-states, etc.

Yes, and the apropriate powerd script can tell it to do so.

We had a lengthy discussion about this at least once, years ago, and back
then consensus was to have powerd and it's scripts to be the sole userland
part responsible for this things.

I don't see what SIGPWR -> init would gain us.

Martin