summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-16 12:33:48 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-16 12:33:48 +0200
commit0e7f85c24a05bdda1c46b80b495bd8a1b88f67c7 (patch)
tree801b1326d11670900a37df565f051928d3231f65 /Kernel/Process.h
parentc9e38c525542adaeefd8378fb769f2596c2eab5d (diff)
downloadserenity-0e7f85c24a05bdda1c46b80b495bd8a1b88f67c7.zip
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.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 620c8ef82c..29d6f6c17d 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -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; }