]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/oom/test-oomd-util.c
Merge pull request #17732 from yuwata/core-use-synthetic_errno
[thirdparty/systemd.git] / src / oom / test-oomd-util.c
index 5df57107f9cdde9167d2d7ccfef616547d9c784a..8143408902b97d8d42d041708b889e5267832a73 100644 (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");