← Commit list

cf1fee06a

Eric Andersen
Eric Andersen
2002-12-17
SOURCE BUG Duration: 16s

Subject

Odd. I never brought this forward from bb.stable. Should handle reaping child processes better. -Erik

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): sysdeps/linux/Config.in "fileutils/Config.in" dosyasini kaynak gosteriyor ama bu dosya repoda hic var olmadi (2002-12-05 - 2003-02-15 arasi orijinal yazar hatasi, 3238ea167 ile duzeltildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

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+3 -1
@@ -1141,7 +1141,7 @@ extern int init_main(int argc, char **argv)
/* Wait for a child process to exit */
wpid = wait(&status);
- if (wpid > 0) {
+ while (wpid > 0) {
/* Find out who died and clean up their corpse */
for (a = init_action_list; a; a = a->next) {
if (a->pid == wpid) {
@@ -1152,6 +1152,8 @@ extern int init_main(int argc, char **argv)
"Scheduling it for restart.\n", a->command, wpid);
}
}
+ /* see if anyone else is waiting to be reaped */
+ wpid = waitpid (-1, &status, WNOHANG);
}
}
}