diff options
Diffstat (limited to 'src/arm/do_start_process.c')
-rw-r--r-- | src/arm/do_start_process.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arm/do_start_process.c b/src/arm/do_start_process.c index 4554f5729..1bc56d540 100644 --- a/src/arm/do_start_process.c +++ b/src/arm/do_start_process.c | |||
@@ -8,13 +8,14 @@ | |||
8 | * with spaces to the new process. | 8 | * with spaces to the new process. |
9 | * | 9 | * |
10 | * @param pipe_control should a pipe be used to send signals to the child? | 10 | * @param pipe_control should a pipe be used to send signals to the child? |
11 | * @param std_inheritance a set of GNUNET_OS_INHERIT_STD_* flags | ||
11 | * @param lsocks array of listen sockets to dup starting at fd3 (systemd-style), or NULL | 12 | * @param lsocks array of listen sockets to dup starting at fd3 (systemd-style), or NULL |
12 | * @param first_arg first argument for argv (may be an empty string) | 13 | * @param first_arg first argument for argv (may be an empty string) |
13 | * @param ... more arguments, NULL terminated | 14 | * @param ... more arguments, NULL terminated |
14 | * @return handle of the started process, NULL on error | 15 | * @return handle of the started process, NULL on error |
15 | */ | 16 | */ |
16 | static struct GNUNET_OS_Process * | 17 | static struct GNUNET_OS_Process * |
17 | do_start_process (int pipe_control, | 18 | do_start_process (int pipe_control, unsigned int std_inheritance, |
18 | const SOCKTYPE * lsocks, const char *first_arg, ...) | 19 | const SOCKTYPE * lsocks, const char *first_arg, ...) |
19 | { | 20 | { |
20 | va_list ap; | 21 | va_list ap; |
@@ -97,7 +98,7 @@ do_start_process (int pipe_control, | |||
97 | /* *INDENT-ON* */ | 98 | /* *INDENT-ON* */ |
98 | va_end (ap); | 99 | va_end (ap); |
99 | argv[argv_size] = NULL; | 100 | argv[argv_size] = NULL; |
100 | proc = GNUNET_OS_start_process_v (pipe_control, lsocks, argv[0], argv); | 101 | proc = GNUNET_OS_start_process_v (pipe_control, std_inheritance, lsocks, argv[0], argv); |
101 | while (argv_size > 0) | 102 | while (argv_size > 0) |
102 | GNUNET_free (argv[--argv_size]); | 103 | GNUNET_free (argv[--argv_size]); |
103 | GNUNET_free (argv); | 104 | GNUNET_free (argv); |