diff options
-rw-r--r-- | rvnit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rvnit.c b/rvnit.c index f7b0a33..2a054bd 100644 --- a/rvnit.c +++ b/rvnit.c @@ -968,8 +968,11 @@ cont1: int pid = timedwait(&status, -1); if (pid < 0) { - if (errno == ECHILD) - break; + if (errno == ECHILD) { + /* init has no active children, keep system up + nevertheless, wait for SIGCONT */ + pause(); + } if (errno == EINTR) continue; } |