… | |
… | |
252 | { |
252 | { |
253 | thisnode = *argv++; |
253 | thisnode = *argv++; |
254 | argc--; |
254 | argc--; |
255 | } |
255 | } |
256 | |
256 | |
257 | if (!ev::ev_default_loop (0)) |
257 | if (!ev_default_loop (0)) |
258 | { |
258 | { |
259 | slog (L_ERR, _("unable to initialise the event loop (bad $LIBEV_METHODS?)")); |
259 | slog (L_ERR, _("unable to initialise the event loop (bad $LIBEV_METHODS?)")); |
260 | exit (EXIT_FAILURE); |
260 | exit (EXIT_FAILURE); |
261 | } |
261 | } |
262 | |
262 | |
… | |
… | |
280 | |
280 | |
281 | setup_signals (); |
281 | setup_signals (); |
282 | |
282 | |
283 | if (!network.setup ()) |
283 | if (!network.setup ()) |
284 | { |
284 | { |
285 | ev::ev_loop (EV_DEFAULT_A_ 0); |
285 | ev_loop (EV_DEFAULT_ 0); |
286 | cleanup_and_exit (EXIT_FAILURE); |
286 | cleanup_and_exit (EXIT_FAILURE); |
287 | } |
287 | } |
288 | |
288 | |
289 | slog (L_ERR, _("unable to setup network, unrecoverable error, exiting.")); |
289 | slog (L_ERR, _("unable to setup network, unrecoverable error, exiting.")); |
290 | cleanup_and_exit (EXIT_FAILURE); |
290 | cleanup_and_exit (EXIT_FAILURE); |