summaryrefslogtreecommitdiffstats
path: root/kernel/signal.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2007-12-06 11:15:50 -0500
committerMatthew Wilcox <willy@linux.intel.com>2007-12-06 17:35:35 -0500
commitf776d12dd16da1b0cd55a1240002c1b31f315d5d (patch)
treeb57a69c2143361edf6b2c2d4fd1b6e8616c8f347 /kernel/signal.c
parentf021a3c2b14d0dd082c2cee890c204d9e1dee52b (diff)
downloadop-kernel-dev-f776d12dd16da1b0cd55a1240002c1b31f315d5d.zip
op-kernel-dev-f776d12dd16da1b0cd55a1240002c1b31f315d5d.tar.gz
Add fatal_signal_pending
Like signal_pending, but it's only true for signals which are fatal to this process Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r--kernel/signal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index fd4797f..657aa16 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -994,6 +994,11 @@ void zap_other_threads(struct task_struct *p)
}
}
+int fastcall __fatal_signal_pending(struct task_struct *tsk)
+{
+ return sigismember(&tsk->pending.signal, SIGKILL);
+}
+
/*
* Must be called under rcu_read_lock() or with tasklist_lock read-held.
*/
OpenPOWER on IntegriCloud