mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +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
|
@ -46,7 +46,7 @@ pid_t Process::sys$fork(RegisterState& regs)
|
|||
child->m_unveiled_paths = m_unveiled_paths;
|
||||
child->m_fds = m_fds;
|
||||
child->m_sid = m_sid;
|
||||
child->m_pgid = m_pgid;
|
||||
child->m_pg = m_pg;
|
||||
child->m_umask = m_umask;
|
||||
|
||||
#ifdef FORK_DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue