move log statement
authorChristian Grothoff <christian@grothoff.org>
Sat, 6 Feb 2010 13:07:21 +0000 (13:07 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 6 Feb 2010 13:07:21 +0000 (13:07 +0000)
src/arm/gnunet-service-arm.c

index be2b6aa1df97cb55673d584e9839fd9ad0ec428c..7a217b48239646fdc544138acf3d6750e7460c2b 100644 (file)
@@ -577,11 +577,6 @@ stop_service (struct GNUNET_SERVER_Client *client, const char *servicename)
       GNUNET_SERVER_receive_done (client, GNUNET_OK);
       return;
     }
-#if DEBUG_ARM
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Sending kill signal to service `%s', waiting for process to die.\n",
-             servicename);
-#endif
   if (pos->pid == 0)
     {
       /* process is in delayed restart, simply remove it! */
@@ -590,7 +585,11 @@ stop_service (struct GNUNET_SERVER_Client *client, const char *servicename)
       GNUNET_SERVER_receive_done (client, GNUNET_OK);
       return;
     }
-
+#if DEBUG_ARM
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "Sending kill signal to service `%s', waiting for process to die.\n",
+             servicename);
+#endif
   if (0 != PLIBC_KILL (pos->pid, SIGTERM))
     GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
   pos->next = running;