mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-27 15:31: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) {
|
||||
sleep(10000);
|
||||
sleep(10);
|
||||
}
|
||||
else {
|
||||
struct rusage resource_usage;
|
||||
@ -26,4 +26,4 @@ int main()
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user