Also disable atexit hooks in fatal_signal_fork().
authorBen Pfaff <blp@nicira.com>
Wed, 3 Sep 2008 17:10:39 +0000 (10:10 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 3 Sep 2008 17:10:39 +0000 (10:10 -0700)
commitbb93ad418c771e7ba1a4256bf59cbe510102d1bd
tree4d23183bc3521ddcf94fb029235dcb631ff71fa3
parent123301f8b57df7e539478c607d52d21b55e023c0
Also disable atexit hooks in fatal_signal_fork().

This fixes a problem in ofp-discover, where it would daemonize itself
after setting an IP address on one of its interfaces.  The daemonize
function would call fatal_signal_fork() then exit(0), which would in turn
cause the netdev code to disable the interface and thereby remove the IP
address.

The bug that this fixes was introduced in commit 3cc1ae6a3, "Add ability
to run fatal signal hooks upon normal termination too."
lib/fatal-signal.c