Merge pull request #38 from adelnobel/patch-1

Get rid of zombie processes
This commit is contained in:
LiYang 2020-07-06 18:52:50 +08:00 committed by GitHub
commit 0b5299fd6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }