mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-28 16:01:41 +00:00
Merge pull request #38 from adelnobel/patch-1
Get rid of zombie processes
This commit is contained in:
commit
0b5299fd6d
@ -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;
|
||||||
@ -26,4 +26,4 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user