summaryrefslogtreecommitdiff
path: root/src/arm/arm_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-11-03 21:26:40 +0000
committerChristian Grothoff <christian@grothoff.org>2010-11-03 21:26:40 +0000
commit721e49caeea6ba5073f8bc5c6c08359295c02bb5 (patch)
treee06e80ba90af91e9452a48a7a5782913199b4877 /src/arm/arm_api.c
parent37ac1b7c9e9e05f93d4100cfb53450ec2d370989 (diff)
downloadgnunet-721e49caeea6ba5073f8bc5c6c08359295c02bb5.tar.gz
gnunet-721e49caeea6ba5073f8bc5c6c08359295c02bb5.zip
original patch from Mantis 1614
Diffstat (limited to 'src/arm/arm_api.c')
-rw-r--r--src/arm/arm_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c
index fb4f3a02d..81f1c2d5c 100644
--- a/src/arm/arm_api.c
+++ b/src/arm/arm_api.c
@@ -375,7 +375,7 @@ arm_service_report (void *cls,
375 const struct GNUNET_SCHEDULER_TaskContext *tc) 375 const struct GNUNET_SCHEDULER_TaskContext *tc)
376{ 376{
377 struct RequestContext *pos = cls; 377 struct RequestContext *pos = cls;
378 pid_t pid; 378 GNUNET_OS_Process *proc;
379 char *binary; 379 char *binary;
380 char *config; 380 char *config;
381 char *loprefix; 381 char *loprefix;
@@ -454,7 +454,7 @@ arm_service_report (void *cls,
454 ) 454 )
455 { 455 {
456 /* we're clearly running a test, don't daemonize */ 456 /* we're clearly running a test, don't daemonize */
457 pid = do_start_process (NULL, 457 proc = do_start_process (NULL,
458 loprefix, 458 loprefix,
459 binary, 459 binary,
460 "-c", config, 460 "-c", config,
@@ -467,7 +467,7 @@ arm_service_report (void *cls,
467 } 467 }
468 else 468 else
469 { 469 {
470 pid = do_start_process (NULL, 470 proc = do_start_process (NULL,
471 loprefix, 471 loprefix,
472 binary, 472 binary,
473 "-c", config, 473 "-c", config,
@@ -482,7 +482,7 @@ arm_service_report (void *cls,
482 GNUNET_free (config); 482 GNUNET_free (config);
483 GNUNET_free (loprefix); 483 GNUNET_free (loprefix);
484 GNUNET_free (lopostfix); 484 GNUNET_free (lopostfix);
485 if (pid == -1) 485 if (proc == NULL)
486 { 486 {
487 if (pos->callback != NULL) 487 if (pos->callback != NULL)
488 pos->callback (pos->cls, GNUNET_SYSERR); 488 pos->callback (pos->cls, GNUNET_SYSERR);