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
ofp-parse: Refactor action parsing to improve compiler warnings.
[sliver-openvswitch.git]
/
lib
/
daemon.c
diff --git
a/lib/daemon.c
b/lib/daemon.c
index
aa971f2
..
ef1a24e
100644
(file)
--- a/
lib/daemon.c
+++ b/
lib/daemon.c
@@
-408,6
+408,9
@@
close_standard_fds(void)
dup2(null_fd, STDOUT_FILENO);
dup2(null_fd, STDERR_FILENO);
}
dup2(null_fd, STDOUT_FILENO);
dup2(null_fd, STDERR_FILENO);
}
+
+ /* Disable logging to stderr to avoid wasting CPU time. */
+ vlog_set_levels(NULL, VLF_CONSOLE, VLL_OFF);
}
/* If daemonization is configured, then starts daemonization, by forking and
}
/* If daemonization is configured, then starts daemonization, by forking and
@@
-554,7
+557,7
@@
read_pidfile__(const char *pidfile, bool delete_if_stale)
* pidfile locked, and only that process has the right to unlink it. */
if (!delete_if_stale) {
error = ESRCH;
* pidfile locked, and only that process has the right to unlink it. */
if (!delete_if_stale) {
error = ESRCH;
- VLOG_
WARN
("%s: pid file is stale", pidfile);
+ VLOG_
DBG
("%s: pid file is stale", pidfile);
goto error;
}
goto error;
}