← Commit list

4e19fa9b6

Eric Andersen
Eric Andersen
2004-04-12
FAILED Duration: 26s

Subject

As reported by Quy Tonthat, init has problems with inittab's that contain only actions sysinit/wait/once. It does not clean up zombies in that case.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

init/init.c+1 -8
@@ -1144,13 +1144,6 @@ extern int init_main(int argc, char **argv)
/* Next run anything to be run only once */
run_actions(ONCE);
- /* If there is nothing else to do, stop */
- if (init_action_list == NULL) {
- message(LOG | CONSOLE,
- "No more tasks for init -- sleeping forever.");
- loop_forever();
- }
-
/* Redefine SIGHUP to reread /etc/inittab */
signal(SIGHUP, reload_signal);
@@ -1167,7 +1160,7 @@ extern int init_main(int argc, char **argv)
/* Wait for a child process to exit */
wpid = wait(&status);
- while (wpid > 0) {
+ while (init_action_list && wpid > 0) {
/* Find out who died and clean up their corpse */
for (a = init_action_list; a; a = a->next) {
if (a->pid == wpid) {