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
vlog: Introduce VLOG_DEFINE_THIS_MODULE for declaring vlog module in use.
[sliver-openvswitch.git]
/
lib
/
daemon.c
diff --git
a/lib/daemon.c
b/lib/daemon.c
index
78f88a0
..
6cb553a
100644
(file)
--- a/
lib/daemon.c
+++ b/
lib/daemon.c
@@
-18,8
+18,10
@@
#include "daemon.h"
#include <errno.h>
#include <fcntl.h>
#include "daemon.h"
#include <errno.h>
#include <fcntl.h>
+#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/resource.h>
#include <sys/wait.h>
#include <unistd.h>
#include "command-line.h"
#include <sys/wait.h>
#include <unistd.h>
#include "command-line.h"
@@
-30,10
+32,10
@@
#include "socket-util.h"
#include "timeval.h"
#include "util.h"
#include "socket-util.h"
#include "timeval.h"
#include "util.h"
-
-#define THIS_MODULE VLM_daemon
#include "vlog.h"
#include "vlog.h"
+VLOG_DEFINE_THIS_MODULE(daemon)
+
/* Should we run in the background? */
static bool detach;
/* Should we run in the background? */
static bool detach;