Add ability to run fatal signal hooks upon normal termination too.
[openvswitch] / utilities / ofp-discover.c
index 646aec5064756a0f7facff5c339575e564518bb5..a30d357fc56ea73d3bdedec57696efb4d55300aa 100644 (file)
@@ -117,7 +117,7 @@ main(int argc, char *argv[])
         struct iface *iface = &ifaces[i];
         dhclient_init(iface->dhcp, 0);
     }
-    fatal_signal_add_hook(release_ifaces, NULL);
+    fatal_signal_add_hook(release_ifaces, NULL, true);
 
     retval = regcomp(&accept_controller_regex, accept_controller_re,
                      REG_NOSUB | REG_EXTENDED);