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.20 by root, Tue Mar 8 17:33:30 2011 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
206 act.sa_flags = SA_RESETHAND; 206 act.sa_flags = SA_RESETHAND;
207 act.sa_handler = sigterm_handler; sigaction (SIGINT , &act, NULL); 207 act.sa_handler = sigterm_handler; sigaction (SIGINT , &act, NULL);
208 act.sa_handler = sigterm_handler; sigaction (SIGTERM, &act, NULL); 208 act.sa_handler = sigterm_handler; sigaction (SIGTERM, &act, NULL);
209} 209}
210 210
211struct Xob {//D
212 void wcbx ()
213 {
214 printf ("wcbx %p\n", pthread_self());
215 }
216 void dcbx ()
217 {
218 printf ("dcbx %p\n", pthread_self());
219 }
220};
221
211int 222int
212main (int argc, char **argv, char **envp) 223main (int argc, char **argv, char **envp)
213{ 224{
214 ERR_load_crypto_strings (); // we have the RAM 225 ERR_load_crypto_strings (); // we have the RAM
215 226
286 297
287 setup_signals (); 298 setup_signals ();
288 299
289 if (!network.setup ()) 300 if (!network.setup ())
290 { 301 {
291 ev_loop (EV_DEFAULT_ 0); 302 ev_run (EV_DEFAULT_ 0);
292 cleanup_and_exit (EXIT_FAILURE); 303 cleanup_and_exit (EXIT_FAILURE);
293 } 304 }
294 305
295 slog (L_ERR, _("unrecoverable error while setting up network, exiting.")); 306 slog (L_ERR, _("unrecoverable error while setting up network, exiting."));
296 cleanup_and_exit (EXIT_FAILURE); 307 cleanup_and_exit (EXIT_FAILURE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines