summaryrefslogtreecommitdiff
path: root/vswitchd/ovs-vswitchd.c
diff options
context:
space:
mode:
authorGurucharan Shetty <gshetty@nicira.com>2014-02-20 14:58:36 -0800
committerGurucharan Shetty <gshetty@nicira.com>2014-02-21 16:43:04 -0800
commit0b114fa05db7166c49eea70ca4a3a41dd75b1f53 (patch)
treeba70d21fe509a3465f9f51839ad2ce59c50f0b6f /vswitchd/ovs-vswitchd.c
parent6b59b543c840ac82acc4d57f865c0b5e331ac590 (diff)
downloadopenvswitch-0b114fa05db7166c49eea70ca4a3a41dd75b1f53.tar.gz
ovs-vswitchd: Don't register for SIGHUP.
We are registering an interest in SIGHUP to reopen log files. But there is an 'ovs-appctl vlog/reopen' command that does the same and is used in the logrotate config for the distributions. So remove the redundant functionality. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'vswitchd/ovs-vswitchd.c')
-rw-r--r--vswitchd/ovs-vswitchd.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c
index b6a66215a..da18a0a39 100644
--- a/vswitchd/ovs-vswitchd.c
+++ b/vswitchd/ovs-vswitchd.c
@@ -37,7 +37,6 @@
#include "openflow/openflow.h"
#include "ovsdb-idl.h"
#include "poll-loop.h"
-#include "signals.h"
#include "simap.h"
#include "stream-ssl.h"
#include "stream.h"
@@ -65,7 +64,6 @@ main(int argc, char *argv[])
{
char *unixctl_path = NULL;
struct unixctl_server *unixctl;
- struct signal *sighup;
char *remote;
bool exiting;
int retval;
@@ -75,7 +73,6 @@ main(int argc, char *argv[])
service_start(&argc, &argv);
remote = parse_options(argc, argv, &unixctl_path);
signal(SIGPIPE, SIG_IGN);
- sighup = signal_register(SIGHUP);
ovsrec_init();
daemonize_start();
@@ -101,9 +98,6 @@ main(int argc, char *argv[])
exiting = false;
while (!exiting) {
- if (signal_poll(sighup)) {
- vlog_reopen_log_file();
- }
memory_run();
if (memory_should_report()) {
struct simap usage;
@@ -117,7 +111,6 @@ main(int argc, char *argv[])
unixctl_server_run(unixctl);
netdev_run();
- signal_wait(sighup);
memory_wait();
bridge_wait();
unixctl_server_wait(unixctl);