mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
test: serv: die immediately (no sleep) if started with -c
We want to stress test Finit as much as possible. We add a small log though (which admittedly gives us a little bit of a delay) just to see what happens when debugging failing tests. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+3
-1
@@ -207,8 +207,10 @@ int main(int argc, char *argv[])
|
||||
do_notify = atoi(sock);
|
||||
}
|
||||
|
||||
if (do_crash)
|
||||
if (do_crash) {
|
||||
log("Simulating crash, exiting with code %d", EX_SOFTWARE);
|
||||
exit(EX_SOFTWARE);
|
||||
}
|
||||
|
||||
log("Entering while(1) loop");
|
||||
while (running) {
|
||||
|
||||
Reference in New Issue
Block a user