aboutsummaryrefslogtreecommitdiff
path: root/contrib/timeout_watchdog.c
diff options
context:
space:
mode:
authorwachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96>2010-06-28 10:53:00 +0000
committerwachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96>2010-06-28 10:53:00 +0000
commitce8622c8e075df03dfd9f99858ffcd8336617163 (patch)
tree41e3b74b553d84db093c04d16fe28662c1d04f7f /contrib/timeout_watchdog.c
parent2727127fd89a9b92eb5597cd601a8d5f7df4a2ff (diff)
git-svn-id: https://gnunet.org/svn/gnunet@12008 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'contrib/timeout_watchdog.c')
-rw-r--r--contrib/timeout_watchdog.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/contrib/timeout_watchdog.c b/contrib/timeout_watchdog.c
index dfeed6782b..c8c339167f 100644
--- a/contrib/timeout_watchdog.c
+++ b/contrib/timeout_watchdog.c
@@ -54,7 +54,6 @@ void sigchld_handler(int val)
void sigint_handler(int val)
{
- printf("Killing test process\n");
kill(0, val);
exit(1);
}
@@ -92,16 +91,13 @@ signal(SIGTERM, sigint_handler);
child = fork();
if (child==0)
{
- printf("Starting test process `%s'\n",argv[2],arguments);
setpgid(0,gpid);
execvp(argv[2],&argv[2]);
- printf("Test process `%s' could not be started\n",argv[2]);
exit(1);
}
if (child > 0)
{
sleep(timeout);
- printf("Timeout, killing all test processes\n");
kill(0,SIGABRT);
exit(1);
}