mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
Kernel: PID/PGID typing
This compiles, and fixes two bugs: - setpgid() confusion (see previous commit) - tcsetpgrp() now allows to set a non-empty process group even if the group leader has already died. This makes Serenity slightly more POSIX-compatible.
This commit is contained in:
parent
f5744a6f2f
commit
7bdf54c837
Notes:
sideshowbarker
2024-07-19 04:06:44 +09:00
Author: https://github.com/BenWiederhake
Commit: 7bdf54c837
Pull-request: https://github.com/SerenityOS/serenity/pull/3057
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bgianfo
7 changed files with 53 additions and 46 deletions
|
@ -52,7 +52,8 @@ KResult Process::do_killpg(pid_t pgrp, int signal)
|
|||
// Send the signal to all processes in the given group.
|
||||
if (pgrp == 0) {
|
||||
// Send the signal to our own pgrp.
|
||||
pgrp = pgid();
|
||||
// FIXME: PIF/PGID INCOMPLETE
|
||||
pgrp = pgid().value();
|
||||
}
|
||||
|
||||
bool group_was_empty = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue