aboutsummaryrefslogtreecommitdiff
path: root/src/arm/do_start_process.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/do_start_process.c
parent37ac1b7c9e9e05f93d4100cfb53450ec2d370989 (diff)
downloadgnunet-721e49caeea6ba5073f8bc5c6c08359295c02bb5.tar.gz
gnunet-721e49caeea6ba5073f8bc5c6c08359295c02bb5.zip
original patch from Mantis 1614
Diffstat (limited to 'src/arm/do_start_process.c')
-rw-r--r--src/arm/do_start_process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arm/do_start_process.c b/src/arm/do_start_process.c
index d616ac2b7..7d691ce60 100644
--- a/src/arm/do_start_process.c
+++ b/src/arm/do_start_process.c
@@ -12,7 +12,7 @@
12 * @param ... more arguments, NULL terminated 12 * @param ... more arguments, NULL terminated
13 * @return PID of the started process, -1 on error 13 * @return PID of the started process, -1 on error
14 */ 14 */
15static pid_t 15static GNUNET_OS_Process *
16do_start_process (const int *lsocks, 16do_start_process (const int *lsocks,
17 const char *first_arg, ...) 17 const char *first_arg, ...)
18{ 18{
@@ -24,7 +24,7 @@ do_start_process (const int *lsocks,
24 char *pos; 24 char *pos;
25 char *cp; 25 char *cp;
26 const char *last; 26 const char *last;
27 pid_t pid; 27 GNUNET_OS_Process *proc;
28 28
29 argv_size = 1; 29 argv_size = 1;
30 va_start (ap, first_arg); 30 va_start (ap, first_arg);
@@ -88,9 +88,9 @@ do_start_process (const int *lsocks,
88 while (NULL != (arg = (va_arg (ap, const char*)))); 88 while (NULL != (arg = (va_arg (ap, const char*))));
89 va_end (ap); 89 va_end (ap);
90 argv[argv_size] = NULL; 90 argv[argv_size] = NULL;
91 pid = GNUNET_OS_start_process_v (lsocks, argv[0], argv); 91 proc = GNUNET_OS_start_process_v (lsocks, argv[0], argv);
92 while (argv_size > 0) 92 while (argv_size > 0)
93 GNUNET_free (argv[--argv_size]); 93 GNUNET_free (argv[--argv_size]);
94 GNUNET_free (argv); 94 GNUNET_free (argv);
95 return pid; 95 return proc;
96} 96}