Get rid of the undertaker and have waitpid() be the reaper.

For dead orphans, the scheduler calls reap().
This commit is contained in:
Andreas Kling 2018-11-07 23:59:49 +01:00
commit 1dbc340da8
Notes: sideshowbarker 2024-07-19 18:32:04 +09:00
6 changed files with 45 additions and 60 deletions

View file

@ -141,15 +141,6 @@ void dump_backtrace(bool use_ksyms)
}
#endif
static void undertaker_main() NORETURN;
static void undertaker_main()
{
for (;;) {
Process::doHouseKeeping();
sleep(300);
}
}
static void spawn_stress() NORETURN;
static void spawn_stress()
{
@ -306,7 +297,6 @@ void init()
Process::initialize();
Process::create_kernel_process(undertaker_main, "undertaker");
Process::create_kernel_process(init_stage2, "init_stage2");
Scheduler::pick_next();