[ovs-dev] [PATCH] fatal-signal: Run signal hooks outside of actual signal handlers.

Ben Pfaff blp at nicira.com
Tue Dec 8 22:55:45 UTC 2009


Jesse Gross <jesse at nicira.com> writes:

> Rather than running signal hooks directly from the actual signal
> handler, simply record the fact that the signal occured and run
> the hook next time around the poll loop.  This allows significantly
> more freedom as to what can actually be done in the signal hooks.

This idea makes me nervous because it seems entirely possible
that we'd have an infinite-loop bug somewhere that meant that
this approach would prevent us from ever exiting (short of
SIGKILL).

What additional cleanup actions do you want to take that cannot
be conveniently done from signal handlers?




More information about the dev mailing list