X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fovs-vswitchd.c;h=a71eecccc820054f7fe91b425a52e13ea442c6b3;hb=43bb5f82ec051f335a5c5a8975150ec6352d5d73;hp=626cba4f63fa0a0ee8da69d1fa6e8ba87e9fcb6a;hpb=bf8f2167fd3107f5513d487a69a6568cf51afd68;p=openvswitch diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index 626cba4f..a71eeccc 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -30,7 +30,6 @@ #include "command-line.h" #include "compiler.h" #include "daemon.h" -#include "dpif.h" #include "dummy.h" #include "leak-checker.h" #include "netdev.h" @@ -90,13 +89,11 @@ main(int argc, char *argv[]) } bridge_run(); unixctl_server_run(unixctl); - dp_run(); netdev_run(); signal_wait(sighup); bridge_wait(); unixctl_server_wait(unixctl); - dp_wait(); netdev_wait(); if (exiting) { poll_immediate_wake(); @@ -105,6 +102,7 @@ main(int argc, char *argv[]) } bridge_exit(); unixctl_server_destroy(unixctl); + signal_unregister(sighup); return 0; } @@ -122,17 +120,17 @@ parse_options(int argc, char *argv[]) DAEMON_OPTION_ENUMS }; static struct option long_options[] = { - {"help", no_argument, 0, 'h'}, - {"version", no_argument, 0, 'V'}, - {"mlockall", no_argument, 0, OPT_MLOCKALL}, + {"help", no_argument, NULL, 'h'}, + {"version", no_argument, NULL, 'V'}, + {"mlockall", no_argument, NULL, OPT_MLOCKALL}, DAEMON_LONG_OPTIONS, VLOG_LONG_OPTIONS, LEAK_CHECKER_LONG_OPTIONS, STREAM_SSL_LONG_OPTIONS, - {"peer-ca-cert", required_argument, 0, OPT_PEER_CA_CERT}, - {"bootstrap-ca-cert", required_argument, 0, OPT_BOOTSTRAP_CA_CERT}, - {"enable-dummy", no_argument, 0, OPT_ENABLE_DUMMY}, - {0, 0, 0, 0}, + {"peer-ca-cert", required_argument, NULL, OPT_PEER_CA_CERT}, + {"bootstrap-ca-cert", required_argument, NULL, OPT_BOOTSTRAP_CA_CERT}, + {"enable-dummy", no_argument, NULL, OPT_ENABLE_DUMMY}, + {NULL, 0, NULL, 0}, }; char *short_options = long_options_to_short_options(long_options);