X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=utilities%2Fovs-testcontroller.c;h=60cc32f1c45626bfbf4071fa9bb72ff403060e0a;hb=182b2eef208fff46d51c640e3002979e4a0ae7f7;hp=bb96701fdbca7ea6f083e86ab6b8dae4f4723950;hpb=4a1f523f2d760e9e5751bc93519d1b70c5492b56;p=cascardo%2Fovs.git diff --git a/utilities/ovs-testcontroller.c b/utilities/ovs-testcontroller.c index bb96701fd..60cc32f1c 100644 --- a/utilities/ovs-testcontroller.c +++ b/utilities/ovs-testcontroller.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2015 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,11 +103,13 @@ main(int argc, char *argv[]) int retval; int i; - proctitle_init(argc, argv); + ovs_cmdl_proctitle_init(argc, argv); set_program_name(argv[0]); parse_options(argc, argv); fatal_ignore_sigpipe(); + daemon_become_new_user(false); + if (argc - optind < 1) { ovs_fatal(0, "at least one vconn argument required; " "use --help for usage"); @@ -145,7 +147,7 @@ main(int argc, char *argv[]) ovs_fatal(0, "no active or passive switch connections"); } - daemonize_start(); + daemonize_start(false); retval = unixctl_server_create(unixctl_path, &unixctl); if (retval) { @@ -277,7 +279,7 @@ parse_options(int argc, char *argv[]) {"peer-ca-cert", required_argument, NULL, OPT_PEER_CA_CERT}, {NULL, 0, NULL, 0}, }; - char *short_options = long_options_to_short_options(long_options); + char *short_options = ovs_cmdl_long_options_to_short_options(long_options); for (;;) { int indexptr;