1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

Kernel: Sending a signal to a process now goes to the main thread

Instead of falling back to the suspicious "any_thread()" mechanism,
just fail with ESRCH if you try to kill() a PID that doesn't have a
corresponding TID.
This commit is contained in:
Andreas Kling 2020-05-16 12:33:48 +02:00
parent c9e38c5255
commit 0e7f85c24a
2 changed files with 8 additions and 9 deletions

View file

@ -382,7 +382,7 @@ public:
bool is_being_inspected() const { return m_inspector_count; }
void terminate_due_to_signal(u8 signal);
void send_signal(u8, Process* sender);
KResult send_signal(u8 signal, Process* sender);
u16 thread_count() const { return m_thread_count; }