[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10238 - gnunet/src/arm
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10238 - gnunet/src/arm |
Date: |
Sat, 6 Feb 2010 13:57:10 +0100 |
Author: grothoff
Date: 2010-02-06 13:57:10 +0100 (Sat, 06 Feb 2010)
New Revision: 10238
Modified:
gnunet/src/arm/gnunet-service-arm.c
Log:
bugfix
Modified: gnunet/src/arm/gnunet-service-arm.c
===================================================================
--- gnunet/src/arm/gnunet-service-arm.c 2010-02-06 12:51:54 UTC (rev 10237)
+++ gnunet/src/arm/gnunet-service-arm.c 2010-02-06 12:57:10 UTC (rev 10238)
@@ -102,10 +102,14 @@
*/
time_t mtime;
- /* Process exponential backoff time */
+ /**
+ * Process exponential backoff time
+ */
struct GNUNET_TIME_Relative backoff;
- /* Absolute time at which the process is scheduled to restart in case of
death */
+ /**
+ * Absolute time at which the process is scheduled to restart in case of
death
+ */
struct GNUNET_TIME_Absolute restartAt;
/**
@@ -578,6 +582,15 @@
"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! */
+ free_entry (pos);
+ signal_result (client, servicename, GNUNET_MESSAGE_TYPE_ARM_IS_DOWN);
+ GNUNET_SERVER_receive_done (client, GNUNET_OK);
+ return;
+ }
+
if (0 != PLIBC_KILL (pos->pid, SIGTERM))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
pos->next = running;
@@ -867,7 +880,7 @@
else
prev->next = next;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Service `%s' stopped\n",
+ _("Service `%s' stopped\n"),
pos->name);
signal_result (pos->killing_client,
pos->name, GNUNET_MESSAGE_TYPE_ARM_IS_DOWN);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10238 - gnunet/src/arm,
gnunet <=