mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
Kernel: Distinguish between new and old process groups with equal pgids
This does not add any behaviour change to the processes, but it ties a TTY to an active process group via TIOCSPGRP, and returns the TTY to the kernel when all processes in the process group die. Also makes the TTY keep a link to the original controlling process' parent (for SIGCHLD) instead of the process itself.
This commit is contained in:
parent
cf18bff72a
commit
688e54eac7
Notes:
sideshowbarker
2024-07-19 03:24:48 +09:00
Author: https://github.com/alimpfard
Commit: 688e54eac7
Pull-request: https://github.com/SerenityOS/serenity/pull/3165
Issue: https://github.com/SerenityOS/serenity/issues/3160
Reviewed-by: https://github.com/BenWiederhake
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
9 changed files with 176 additions and 23 deletions
|
@ -111,6 +111,7 @@ void Process::initialize()
|
|||
|
||||
next_pid.store(0, AK::MemoryOrder::memory_order_release);
|
||||
g_processes = new InlineLinkedList<Process>;
|
||||
g_process_groups = new InlineLinkedList<ProcessGroup>;
|
||||
g_hostname = new String("courage");
|
||||
g_hostname_lock = new Lock;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue