mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
test: use for(;;) instead of while(true)
This commit is contained in:
parent
614f57ed76
commit
2940b12826
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user