diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-02-16 12:19:23 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-02-16 12:19:23 +0000 |
commit | dfeff1e1c0fc366a6d7c6c8e85cf8621a0eaa181 (patch) | |
tree | c7f297d164fb72e7b9509eb23766854de3cb4cc6 /src/testing/testing.c | |
parent | 08ec0685c2005fd9cda43313965dfac08435d548 (diff) | |
download | gnunet-dfeff1e1c0fc366a6d7c6c8e85cf8621a0eaa181.tar.gz gnunet-dfeff1e1c0fc366a6d7c6c8e85cf8621a0eaa181.zip |
add args for GNUNET_OS_start_process's
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index c9597cd2e..ed1541873 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -168,7 +168,7 @@ start_fsm (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
168 | /* start GNUnet on remote host */ | 168 | /* start GNUnet on remote host */ |
169 | if (NULL == d->hostname) | 169 | if (NULL == d->hostname) |
170 | { | 170 | { |
171 | d->pid = GNUNET_OS_start_process ("gnunet-service-arm", | 171 | d->pid = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm", |
172 | "gnunet-service-arm", | 172 | "gnunet-service-arm", |
173 | "-c", d->cfgfile, | 173 | "-c", d->cfgfile, |
174 | #if DEBUG_TESTING | 174 | #if DEBUG_TESTING |
@@ -182,7 +182,7 @@ start_fsm (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
182 | GNUNET_asprintf (&dst, "%s@%s", d->username, d->hostname); | 182 | GNUNET_asprintf (&dst, "%s@%s", d->username, d->hostname); |
183 | else | 183 | else |
184 | dst = GNUNET_strdup (d->hostname); | 184 | dst = GNUNET_strdup (d->hostname); |
185 | d->pid = GNUNET_OS_start_process ("ssh", | 185 | d->pid = GNUNET_OS_start_process (NULL, NULL, "ssh", |
186 | "ssh", | 186 | "ssh", |
187 | dst, | 187 | dst, |
188 | "gnunet-service-arm", | 188 | "gnunet-service-arm", |
@@ -428,7 +428,7 @@ GNUNET_TESTING_daemon_start (struct GNUNET_SCHEDULER_Handle *sched, | |||
428 | GNUNET_asprintf (&arg, "%s@%s:%s", username, hostname, ret->cfgfile); | 428 | GNUNET_asprintf (&arg, "%s@%s:%s", username, hostname, ret->cfgfile); |
429 | else | 429 | else |
430 | GNUNET_asprintf (&arg, "%s:%s", hostname, ret->cfgfile); | 430 | GNUNET_asprintf (&arg, "%s:%s", hostname, ret->cfgfile); |
431 | ret->pid = GNUNET_OS_start_process ("scp", | 431 | ret->pid = GNUNET_OS_start_process (NULL, NULL, "scp", |
432 | "scp", ret->cfgfile, arg, NULL); | 432 | "scp", ret->cfgfile, arg, NULL); |
433 | GNUNET_free (arg); | 433 | GNUNET_free (arg); |
434 | if (-1 == ret->pid) | 434 | if (-1 == ret->pid) |
@@ -520,7 +520,7 @@ GNUNET_TESTING_daemon_stop (struct GNUNET_TESTING_Daemon *d, | |||
520 | GNUNET_asprintf (&dst, "%s@%s", d->username, d->hostname); | 520 | GNUNET_asprintf (&dst, "%s@%s", d->username, d->hostname); |
521 | else | 521 | else |
522 | dst = GNUNET_strdup (d->hostname); | 522 | dst = GNUNET_strdup (d->hostname); |
523 | d->pid = GNUNET_OS_start_process ("ssh", | 523 | d->pid = GNUNET_OS_start_process (NULL, NULL, "ssh", |
524 | "ssh", dst, "rm", d->cfgfile, NULL); | 524 | "ssh", dst, "rm", d->cfgfile, NULL); |
525 | GNUNET_free (dst); | 525 | GNUNET_free (dst); |
526 | if (-1 == d->pid) | 526 | if (-1 == d->pid) |
@@ -606,7 +606,7 @@ GNUNET_TESTING_daemon_reconfigure (struct GNUNET_TESTING_Daemon *d, | |||
606 | GNUNET_asprintf (&arg, "%s@%s:%s", d->username, d->hostname, d->cfgfile); | 606 | GNUNET_asprintf (&arg, "%s@%s:%s", d->username, d->hostname, d->cfgfile); |
607 | else | 607 | else |
608 | GNUNET_asprintf (&arg, "%s:%s", d->hostname, d->cfgfile); | 608 | GNUNET_asprintf (&arg, "%s:%s", d->hostname, d->cfgfile); |
609 | d->pid = GNUNET_OS_start_process ("scp", "scp", d->cfgfile, arg, NULL); | 609 | d->pid = GNUNET_OS_start_process (NULL, NULL, "scp", "scp", d->cfgfile, arg, NULL); |
610 | GNUNET_free (arg); | 610 | GNUNET_free (arg); |
611 | if (-1 == d->pid) | 611 | if (-1 == d->pid) |
612 | { | 612 | { |