diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/init/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c index 0070990..7355a53 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -779,9 +779,11 @@ reroot(void) /* * Make sure nobody can interfere with our scheme. + * Ignore ESRCH, which can apparently happen when + * there are no processes to kill. */ error = kill(-1, SIGKILL); - if (error != 0) { + if (error != 0 && errno != ESRCH) { emergency("kill(2) failed: %s", strerror(errno)); goto out; } |