mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +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
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