Skip to content

Commit db6aa2c

Browse files
authored
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.
1 parent c75945a commit db6aa2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_src/integration/child_proc_real_time_limit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int main()
1616
}
1717

1818
if (pid == 0) {
19-
sleep(10000);
19+
sleep(10);
2020
}
2121
else {
2222
struct rusage resource_usage;
@@ -26,4 +26,4 @@ int main()
2626
}
2727

2828
return 0;
29-
}
29+
}

0 commit comments

Comments
 (0)