[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12320 - gnunet/src/arm
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12320 - gnunet/src/arm |
Date: |
Wed, 21 Jul 2010 12:11:37 +0200 |
Author: grothoff
Date: 2010-07-21 12:11:37 +0200 (Wed, 21 Jul 2010)
New Revision: 12320
Modified:
gnunet/src/arm/arm_api.c
Log:
do not daemonize when running tests
Modified: gnunet/src/arm/arm_api.c
===================================================================
--- gnunet/src/arm/arm_api.c 2010-07-21 08:53:36 UTC (rev 12319)
+++ gnunet/src/arm/arm_api.c 2010-07-21 10:11:37 UTC (rev 12320)
@@ -434,16 +434,38 @@
GNUNET_free (lopostfix);
return;
}
- pid = do_start_process (NULL,
- loprefix,
- binary,
- "-c", config,
+ if ((GNUNET_YES == GNUNET_CONFIGURATION_have_value (cfg,
+ "TESTING",
+ "WEAKRANDOM")) &&
+ (GNUNET_YES == GNUNET_CONFIGURATION_get_value_yesno (cfg,
+ "TESTING",
+ "WEAKRANDOM")))
+ {
+ /* we're clearly running a test, don't daemonize */
+ pid = do_start_process (NULL,
+ loprefix,
+ binary,
+ "-c", config,
#if DEBUG_ARM
- "-L", "DEBUG",
+ "-L", "DEBUG",
#endif
- "-d",
- lopostfix,
- NULL);
+ /* no daemonization! */
+ lopostfix,
+ NULL);
+ }
+ else
+ {
+ pid = do_start_process (NULL,
+ loprefix,
+ binary,
+ "-c", config,
+#if DEBUG_ARM
+ "-L", "DEBUG",
+#endif
+ "-d",
+ lopostfix,
+ NULL);
+ }
GNUNET_free (binary);
GNUNET_free (config);
GNUNET_free (loprefix);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12320 - gnunet/src/arm,
gnunet <=