mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
signal: make sig_ignored() return bool
sig_ignored() already behaves like a boolean function. Let's actually declare it as such too. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Al Viro <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Morris <[email protected]> Cc: Kees Cook <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephen Smalley <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
41aaa48119
commit
6a0cdcd788
1 changed files with 3 additions and 3 deletions
|
|
@ -85,7 +85,7 @@ static bool sig_task_ignored(struct task_struct *t, int sig, bool force)
|
|||
return sig_handler_ignored(handler, sig);
|
||||
}
|
||||
|
||||
static int sig_ignored(struct task_struct *t, int sig, bool force)
|
||||
static bool sig_ignored(struct task_struct *t, int sig, bool force)
|
||||
{
|
||||
/*
|
||||
* Blocked signals are never ignored, since the
|
||||
|
|
@ -93,7 +93,7 @@ static int sig_ignored(struct task_struct *t, int sig, bool force)
|
|||
* unblocked.
|
||||
*/
|
||||
if (sigismember(&t->blocked, sig) || sigismember(&t->real_blocked, sig))
|
||||
return 0;
|
||||
return false;
|
||||
|
||||
/*
|
||||
* Tracers may want to know about even ignored signal unless it
|
||||
|
|
@ -101,7 +101,7 @@ static int sig_ignored(struct task_struct *t, int sig, bool force)
|
|||
* by SIGNAL_UNKILLABLE task.
|
||||
*/
|
||||
if (t->ptrace && sig != SIGKILL)
|
||||
return 0;
|
||||
return false;
|
||||
|
||||
return sig_task_ignored(t, sig, force);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue