X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fovs-vswitchd.c;h=7b0661ec63e2850e1ae69fc085c06eac3edef307;hb=a9f4baa6d0f0210cbd40500b968173e63380665e;hp=604ee1b5530dc7d13453bdf25ee196ed2b6faea0;hpb=250382a8fc839cb077b2636983a1c1de0d6b0e17;p=openvswitch diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index 604ee1b5..7b0661ec 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008, 2009 Nicira Networks +/* Copyright (c) 2008, 2009, 2010 Nicira Networks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,6 +62,7 @@ main(int argc, char *argv[]) unsigned int idl_seqno; int retval; + proctitle_init(argc, argv); set_program_name(argv[0]); time_init(); vlog_init(); @@ -69,13 +70,14 @@ main(int argc, char *argv[]) signal(SIGPIPE, SIG_IGN); sighup = signal_register(SIGHUP); process_init(); + ovsrec_init(); die_if_already_running(); daemonize_start(); retval = unixctl_server_create(NULL, &unixctl); if (retval) { - ovs_fatal(retval, "could not listen for control connections"); + exit(EXIT_FAILURE); } daemonize_complete();