aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_os_start_process.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-10-12 00:07:33 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-10-12 00:07:33 +0000
commit27728a48d661e9ee546cc95aae8fa52050eefb29 (patch)
tree89450fc22b530dc592134ac18405180eeafe13b3 /src/util/test_os_start_process.c
parent6d38e5b12b460d1d7f0a6eafe1410f7121e04002 (diff)
downloadgnunet-27728a48d661e9ee546cc95aae8fa52050eefb29.tar.gz
gnunet-27728a48d661e9ee546cc95aae8fa52050eefb29.zip
- change --enable-ll to --enable-supermuc
- define a system wide termination signal GNUNET_TERM_SIG. Set this to SIGUSR1 only when building for SuperMUC
Diffstat (limited to 'src/util/test_os_start_process.c')
-rw-r--r--src/util/test_os_start_process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/test_os_start_process.c b/src/util/test_os_start_process.c
index 8e701750b..90d8ae101 100644
--- a/src/util/test_os_start_process.c
+++ b/src/util/test_os_start_process.c
@@ -60,7 +60,7 @@ struct read_context rc;
60static void 60static void
61end_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 61end_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
62{ 62{
63 if (0 != GNUNET_OS_process_kill (proc, SIGTERM)) 63 if (0 != GNUNET_OS_process_kill (proc, GNUNET_TERM_SIG))
64 { 64 {
65 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); 65 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
66 } 66 }
@@ -207,7 +207,7 @@ check_kill ()
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, GNUNET_TERM_SIG))
211 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); 211 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
212 GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (proc)); 212 GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (proc));
213 GNUNET_OS_process_destroy (proc); 213 GNUNET_OS_process_destroy (proc);
@@ -236,7 +236,7 @@ check_instant_kill ()
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, GNUNET_TERM_SIG))
240 { 240 {
241 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); 241 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
242 } 242 }