ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/gvpe.C
(Generate patch)

Comparing gvpe/src/gvpe.C (file contents):
Revision 1.18 by root, Tue Feb 8 23:11:36 2011 UTC vs.
Revision 1.22 by root, Tue Dec 4 10:29:43 2012 UTC

1/* 1/*
2 gvpe.C -- the main file for gvpe 2 gvpe.C -- the main file for gvpe
3 Copyright (C) 1998-2002 Ivo Timmermans <ivo@o2w.nl> 3 Copyright (C) 1998-2002 Ivo Timmermans <ivo@o2w.nl>
4 2000-2002 Guus Sliepen <guus@sliepen.eu.org> 4 2000-2002 Guus Sliepen <guus@sliepen.eu.org>
5 2003-2008 Marc Lehmann <gvpe@schmorp.de> 5 2003-2011 Marc Lehmann <gvpe@schmorp.de>
6 6
7 This file is part of GVPE. 7 This file is part of GVPE.
8 8
9 GVPE is free software; you can redistribute it and/or modify it 9 GVPE is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by the 10 under the terms of the GNU General Public License as published by the
285 exit (EXIT_SUCCESS); 285 exit (EXIT_SUCCESS);
286 286
287 setup_signals (); 287 setup_signals ();
288 288
289 if (!network.setup ()) 289 if (!network.setup ())
290 if (network.drop_privileges ())
290 { 291 {
291 ev_loop (EV_DEFAULT_ 0); 292 ev_run (EV_DEFAULT_ 0);
292 cleanup_and_exit (EXIT_FAILURE); 293 cleanup_and_exit (EXIT_FAILURE);
293 } 294 }
294 295
295 slog (L_ERR, _("unrecoverable error while setting up network, exiting.")); 296 slog (L_CRIT, _("unrecoverable error while setting up network, exiting."));
296 cleanup_and_exit (EXIT_FAILURE); 297 cleanup_and_exit (EXIT_FAILURE);
297} 298}
298 299

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines