test: use for(;;) instead of while(true)

This commit is contained in:
Yu Watanabe 2020-11-27 08:38:12 +09:00
parent 614f57ed76
commit 2940b12826
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ static int fork_and_sleep(unsigned sleep_min) {
if (pid == 0) {
timeout = sleep_min * USEC_PER_MINUTE;
ts = now(CLOCK_MONOTONIC);
while (true) {
for (;;) {
n = now(CLOCK_MONOTONIC);
if (ts + timeout < n) {
log_error("Child timed out waiting to be killed");