mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
Get rid of the undertaker and have waitpid() be the reaper.
For dead orphans, the scheduler calls reap().
This commit is contained in:
parent
f792349853
commit
1dbc340da8
6 changed files with 45 additions and 60 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue