X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdaemon.c;h=f4151ab1253238b08262a24724f3680b62cfda2c;hb=5b95ab0edf18e44d6624c8aa98b658df2fbb48f2;hp=9c814ea9fd9e61e9efe9913f790ebfd79d59577d;hpb=0b3769425ffdc935588254dae9a4c31788846e2f;p=openvswitch diff --git a/lib/daemon.c b/lib/daemon.c index 9c814ea9..f4151ab1 100644 --- 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); } + + /* Disable logging to stderr to avoid wasting CPU time. */ + vlog_set_levels(NULL, VLF_CONSOLE, VLL_EMER); } /* If daemonization is configured, then starts daemonization, by forking and