diff options
author | Jesse Gross <jesse@nicira.com> | 2009-12-08 14:11:22 -0800 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2010-01-06 09:11:58 -0500 |
commit | d8b30702057c18dac2f35fd766ef5d2a12786eae (patch) | |
tree | ee4bbb4724562a56b95b267e46cdbe49702fee02 /utilities/ovs-discover.c | |
parent | e26b5a068c2b43c19d24deb8bb84499b112069fb (diff) |
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.
Diffstat (limited to 'utilities/ovs-discover.c')
-rw-r--r-- | utilities/ovs-discover.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/utilities/ovs-discover.c b/utilities/ovs-discover.c index dc91bce3..3aa28fad 100644 --- a/utilities/ovs-discover.c +++ b/utilities/ovs-discover.c @@ -122,7 +122,6 @@ main(int argc, char *argv[]) signal(SIGPIPE, SIG_IGN); for (;;) { - fatal_signal_block(); for (i = 0; i < n_ifaces; i++) { struct iface *iface = &ifaces[i]; dhclient_run(iface->dhcp); @@ -195,7 +194,6 @@ main(int argc, char *argv[]) dhclient_wait(iface->dhcp); } unixctl_server_wait(unixctl); - fatal_signal_unblock(); poll_block(); } |