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
daemon: Make sure that vlog is initialized when a process daemonizes.
[sliver-openvswitch.git]
/
lib
/
daemon.c
diff --git
a/lib/daemon.c
b/lib/daemon.c
index
6cb553a
..
c8033fb
100644
(file)
--- a/
lib/daemon.c
+++ b/
lib/daemon.c
@@
-448,6
+448,10
@@
daemonize_start(void)
}
make_pidfile();
+
+ /* Make sure that the unixctl commands for vlog get registered in a
+ * daemon, even before the first log message. */
+ vlog_init();
}
/* If daemonization is configured, then this function notifies the parent