gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: fix gnunet-service-arm term


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix gnunet-service-arm termination status code
Date: Sun, 18 Aug 2019 23:41:42 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 3fe086433 fix gnunet-service-arm termination status code
3fe086433 is described below

commit 3fe0864331282f0436687674e0474f55c6c76c46
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Aug 18 23:40:04 2019 +0200

    fix gnunet-service-arm termination status code
---
 src/arm/gnunet-service-arm.c | 19 ++++++++++---------
 src/util/service.c           |  4 ++--
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c
index 4e3474cb6..4b7cbec20 100644
--- a/src/arm/gnunet-service-arm.c
+++ b/src/arm/gnunet-service-arm.c
@@ -2279,15 +2279,16 @@ main (int argc,
   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)
diff --git a/src/util/service.c b/src/util/service.c
index d03650501..ba0271a38 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -19,7 +19,7 @@
 */
 
 /**
- * @file util/service_new.c
+ * @file util/service.c
  * @brief functions related to starting services (redesign)
  * @author Christian Grothoff
  * @author Florian Dold
@@ -2304,7 +2304,7 @@ GNUNET_SERVICE_run_ (int argc,
   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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]