mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-29 00:11:41 +00:00
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.
This commit is contained in:
parent
c75945a3db
commit
db6aa2c9f7
@ -16,7 +16,7 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
sleep(10000);
|
sleep(10);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
struct rusage resource_usage;
|
struct rusage resource_usage;
|
||||||
|
Loading…
Reference in New Issue
Block a user