git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fatal-signal: After fork, clear hooks instead of disabling them.
[sliver-openvswitch.git]
/
lib
/
netdev.c
diff --git
a/lib/netdev.c
b/lib/netdev.c
index
428ad95
..
8d243e9
100644
(file)
--- a/
lib/netdev.c
+++ b/
lib/netdev.c
@@
-70,10
+70,11
@@
int
netdev_initialize(void)
{
static int status = -1;
netdev_initialize(void)
{
static int status = -1;
+
if (status < 0) {
int i, j;
if (status < 0) {
int i, j;
- fatal_signal_add_hook(close_all_netdevs, NULL, true);
+ fatal_signal_add_hook(close_all_netdevs, NULL,
NULL,
true);
status = 0;
for (i = j = 0; i < n_netdev_classes; i++) {
status = 0;
for (i = j = 0; i < n_netdev_classes; i++) {