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:
Adel Aly 2020-06-14 19:15:21 -04:00 committed by GitHub
parent c75945a3db
commit db6aa2c9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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