|
@@ -172,6 +172,17 @@ void recalc_sigpending(void)
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void calculate_sigpending(void)
|
|
|
|
+{
|
|
|
|
+ /* Have any signals or users of TIF_SIGPENDING been delayed
|
|
|
|
+ * until after fork?
|
|
|
|
+ */
|
|
|
|
+ spin_lock_irq(¤t->sighand->siglock);
|
|
|
|
+ set_tsk_thread_flag(current, TIF_SIGPENDING);
|
|
|
|
+ recalc_sigpending();
|
|
|
|
+ spin_unlock_irq(¤t->sighand->siglock);
|
|
|
|
+}
|
|
|
|
+
|
|
/* Given the mask, find the first available signal that should be serviced. */
|
|
/* Given the mask, find the first available signal that should be serviced. */
|
|
|
|
|
|
#define SYNCHRONOUS_MASK \
|
|
#define SYNCHRONOUS_MASK \
|