--- gvpe/src/gvpe.C 2011/03/08 17:33:30 1.20 +++ gvpe/src/gvpe.C 2013/07/05 10:04:22 1.23 @@ -208,17 +208,6 @@ act.sa_handler = sigterm_handler; sigaction (SIGTERM, &act, NULL); } -struct Xob {//D - void wcbx () - { - printf ("wcbx %p\n", pthread_self()); - } - void dcbx () - { - printf ("dcbx %p\n", pthread_self()); - } -}; - int main (int argc, char **argv, char **envp) { @@ -243,7 +232,7 @@ VERSION, __DATE__, __TIME__, PROTOCOL_MAJOR, PROTOCOL_MINOR); printf (_("Built with kernel interface %s/%s.\n"), IFTYPE, IFSUBTYPE); printf (_ - ("Copyright (C) 2003-2008 Marc Lehmann and others.\n" + ("Copyright (C) 2003-2011 Marc Lehmann and others.\n" "See the AUTHORS file for a complete list.\n\n" "GVPE comes with ABSOLUTELY NO WARRANTY. This is free software,\n" "and you are welcome to redistribute it under certain conditions;\n" @@ -298,12 +287,13 @@ setup_signals (); if (!network.setup ()) - { - ev_run (EV_DEFAULT_ 0); - cleanup_and_exit (EXIT_FAILURE); - } + if (network.drop_privileges ()) + { + ev_run (EV_DEFAULT_ 0); + cleanup_and_exit (EXIT_FAILURE); + } - slog (L_ERR, _("unrecoverable error while setting up network, exiting.")); + slog (L_CRIT, _("unrecoverable error while setting up network, exiting.")); cleanup_and_exit (EXIT_FAILURE); }