NULL signal should be handled as others, except it has no effect
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17528 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -221,6 +221,9 @@ deliver_signal(struct thread *thread, uint signal, uint32 flags)
|
|||||||
if (flags & B_CHECK_PERMISSION) {
|
if (flags & B_CHECK_PERMISSION) {
|
||||||
// ToDo: introduce euid & uid fields to the team and check permission
|
// ToDo: introduce euid & uid fields to the team and check permission
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (signal == 0)
|
||||||
|
return B_OK;
|
||||||
|
|
||||||
if (thread->team == team_get_kernel_team()) {
|
if (thread->team == team_get_kernel_team()) {
|
||||||
// Signals to kernel threads will only wake them up
|
// Signals to kernel threads will only wake them up
|
||||||
@@ -284,7 +287,7 @@ send_signal_etc(pid_t id, uint signal, uint32 flags)
|
|||||||
struct thread *thread;
|
struct thread *thread;
|
||||||
cpu_status state;
|
cpu_status state;
|
||||||
|
|
||||||
if (signal < 1 || signal > MAX_SIGNO)
|
if (signal < 0 || signal > MAX_SIGNO)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
if (id == 0) {
|
if (id == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user