From db6aa2c9f7f5600ef033fdd7e948d29ecf515dea Mon Sep 17 00:00:00 2001 From: Adel Aly Date: Sun, 14 Jun 2020 19:15:21 -0400 Subject: [PATCH] Get rid of zombie processes Sleep is in seconds not milliseconds. This long sleep in the tests creates a zombie process that lives on and has to be killed manually. 10 seconds should be more than enough for the test as real time is 3seconds. --- tests/test_src/integration/child_proc_real_time_limit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_src/integration/child_proc_real_time_limit.c b/tests/test_src/integration/child_proc_real_time_limit.c index c31b22f..05f03b2 100644 --- a/tests/test_src/integration/child_proc_real_time_limit.c +++ b/tests/test_src/integration/child_proc_real_time_limit.c @@ -16,7 +16,7 @@ int main() } if (pid == 0) { - sleep(10000); + sleep(10); } else { struct rusage resource_usage; @@ -26,4 +26,4 @@ int main() } return 0; -} \ No newline at end of file +}