summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorShell <[email protected]>2024-11-12 17:35:47 +0800
committerRbb666 <[email protected]>2025-01-06 19:34:16 +0800
commitdc3270f14ee0a3902df8103f1c1e485bd0f4629f (patch)
treeb72bfbea6fa6f917d54c3757a07c67becba3535a /src/SConscript
parentc0b0838892538d2ca13c844ea598db25ca0323e8 (diff)
feat: add signal kill all functionality
This change introduces the `lwp_signal_kill_all` function, which allows a signal to be sent to all processes in the system. The function iterates over all PIDs and sends the specified signal to each process, except those that are protected from signals. This enhancement provides a convenient way to broadcast signals across all processes in the system. Changes: - Added `lwp_signal_kill_all` function in `lwp_signal.c` to broadcast a signal to all processes by iterating over all PIDs using the existing `lwp_pid_for_each` function. - Introduced a new `kill_all_param` structure to encapsulate the signal information needed for killing processes. - Added internal `_kill_each` helper function for sending the signal to each PID. - Updated `lwp_signal.h` with the new function prototype for `lwp_signal_kill_all`. - Modified `sys_kill` in `lwp_syscall.c` to call `lwp_signal_kill_all` when a process is not specified. Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'src/SConscript')
0 files changed, 0 insertions, 0 deletions