fatal-signal: Run signal hooks outside of actual signal handlers.
authorJesse Gross <jesse@nicira.com>
Tue, 8 Dec 2009 22:11:22 +0000 (14:11 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 6 Jan 2010 14:11:58 +0000 (09:11 -0500)
commitd8b30702057c18dac2f35fd766ef5d2a12786eae
treeee4bbb4724562a56b95b267e46cdbe49702fee02
parente26b5a068c2b43c19d24deb8bb84499b112069fb
fatal-signal: Run signal hooks outside of actual signal handlers.

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.
lib/fatal-signal.c
lib/fatal-signal.h
lib/netdev.c
lib/poll-loop.c
lib/process.c
tests/test-dhcp-client.c
utilities/ovs-discover.c