--- gvpe/src/vped.C 2003/03/06 18:43:07 1.2 +++ gvpe/src/vped.C 2003/03/28 04:05:10 1.4 @@ -44,6 +44,7 @@ #include "slog.h" #include "util.h" #include "protocol.h" +#include "iom.h" vpn network; @@ -168,17 +169,20 @@ sigterm_handler (int a) { network.events |= vpn::EVENT_SHUTDOWN; + network.event.start (0); } RETSIGTYPE sighup_handler (int a) { network.events |= vpn::EVENT_RECONNECT; + network.event.start (0); } RETSIGTYPE sigusr1_handler (int a) { + network.dump_status (); } RETSIGTYPE @@ -250,7 +254,7 @@ RAND_load_file ("/dev/urandom", 1024); - if (!thisnode) + if (!THISNODE) { slog (L_ERR, _("current node not set, or node '%s' not found in configfile, use the -n switch when starting vped."), thisnode ? thisnode : ""); @@ -264,7 +268,7 @@ if (!network.setup ()) { - network.main_loop (); + iom.loop (); cleanup_and_exit (1); }