shc_chld =
GNUNET_SIGNAL_handler_install (GNUNET_SIGCHLD,
&sighandler_child_death);
- if ( GNUNET_OK != GNUNET_SERVICE_run_ (argc,
- argv,
- "arm",
- GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN,
- &run,
- &client_connect_cb,
- &client_disconnect_cb,
- NULL,
- handlers))
+ if (0 !=
+ GNUNET_SERVICE_run_ (argc,
+ argv,
+ "arm",
+ GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN,
+ &run,
+ &client_connect_cb,
+ &client_disconnect_cb,
+ NULL,
+ handlers))
global_ret = 2;
#if HAVE_WAIT4
if (NULL != wait_file)
*/
/**
- * @file util/service_new.c
+ * @file util/service.c
* @brief functions related to starting services (redesign)
* @author Christian Grothoff
* @author Florian Dold
sh.cb_cls = cls;
sh.handlers = GNUNET_MQ_copy_handlers (handlers);
sh.service_name = service_name;
-
+ sh.ret = 0;
/* setup subsystems */
loglev = NULL;
logfile = NULL;