emergency shutdown

Im working on a way to do an emergency shutdown in the event of power
fail. My hardware is designed to assert an interrupt when input power
has failed.

what’s the best way of doing a shutdown when the interrupt is set?
has anyone out there tried this trick or something close to it?

vince

“vince” <vgeisler@engineer.com> wrote in message
news:bvrv3to7n0i4d0cjpr3v7fudm3rqb0d4dr@4ax.com

Im working on a way to do an emergency shutdown in the event of power
fail. My hardware is designed to assert an interrupt when input power
has failed.

what’s the best way of doing a shutdown when the interrupt is set?
has anyone out there tried this trick or something close to it?

When the interrupt is received generate a SIGPWR to evey program.
In general only the filesystem and any related application that have
open files need to know about power failure.

vince