mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Kernel: Support signaling all processes with pid == -1
This is a special case that was previously not implemented. The idea is that you can dispatch a signal to all other processes the calling process has access to. There was some minor refactoring to make the self signal logic into a function so it could easily be easily re-used from do_killall.
This commit is contained in:
parent
597ff9ec93
commit
0f3990cfa3
Notes:
sideshowbarker
2024-07-19 07:17:25 +09:00
Author: https://github.com/bgianfo
Commit: 0f3990cfa3
Pull-request: https://github.com/SerenityOS/serenity/pull/1961
Reviewed-by: https://github.com/awesomekling
2 changed files with 45 additions and 12 deletions
|
@ -445,6 +445,8 @@ private:
|
|||
|
||||
KResult do_kill(Process&, int signal);
|
||||
KResult do_killpg(pid_t pgrp, int signal);
|
||||
KResult do_killall(int signal);
|
||||
KResult do_killself(int signal);
|
||||
|
||||
KResultOr<siginfo_t> do_waitid(idtype_t idtype, int id, int options);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue