aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_os_start_process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_os_start_process.c')
-rw-r--r--src/util/test_os_start_process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/test_os_start_process.c b/src/util/test_os_start_process.c
index 2b1d9070c..8e701750b 100644
--- a/src/util/test_os_start_process.c
+++ b/src/util/test_os_start_process.c
@@ -37,12 +37,12 @@ static int ok;
37static struct GNUNET_OS_Process *proc; 37static struct GNUNET_OS_Process *proc;
38 38
39/** 39/**
40 * Pipe to write to started processes stdin (on write end) 40 * Pipe to write to started processes stdin (on write end)
41 */ 41 */
42static struct GNUNET_DISK_PipeHandle *hello_pipe_stdin; 42static struct GNUNET_DISK_PipeHandle *hello_pipe_stdin;
43 43
44/** 44/**
45 * Pipe to read from started processes stdout (on read end) 45 * Pipe to read from started processes stdout (on read end)
46 */ 46 */
47static struct GNUNET_DISK_PipeHandle *hello_pipe_stdout; 47static struct GNUNET_DISK_PipeHandle *hello_pipe_stdout;
48 48
@@ -204,7 +204,7 @@ check_kill ()
204 fn = GNUNET_OS_get_libexec_binary_path ("gnunet-service-resolver"); 204 fn = GNUNET_OS_get_libexec_binary_path ("gnunet-service-resolver");
205 proc = 205 proc =
206 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_ERR, hello_pipe_stdin, hello_pipe_stdout, fn, 206 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_ERR, hello_pipe_stdin, hello_pipe_stdout, fn,
207 "gnunet-service-resolver", "-", NULL); 207 "gnunet-service-resolver", "-", NULL);
208 sleep (1); /* give process time to start, so we actually use the pipe-kill mechanism! */ 208 sleep (1); /* give process time to start, so we actually use the pipe-kill mechanism! */
209 GNUNET_free (fn); 209 GNUNET_free (fn);
210 if (0 != GNUNET_OS_process_kill (proc, SIGTERM)) 210 if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
@@ -235,7 +235,7 @@ check_instant_kill ()
235 fn = GNUNET_OS_get_libexec_binary_path ("gnunet-service-resolver"); 235 fn = GNUNET_OS_get_libexec_binary_path ("gnunet-service-resolver");
236 proc = 236 proc =
237 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_ERR, hello_pipe_stdin, hello_pipe_stdout, fn, 237 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_ERR, hello_pipe_stdin, hello_pipe_stdout, fn,
238 "gnunet-service-resolver", "-", NULL); 238 "gnunet-service-resolver", "-", NULL);
239 if (0 != GNUNET_OS_process_kill (proc, SIGTERM)) 239 if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
240 { 240 {
241 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); 241 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");