]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/tracehook.h
tracehook: force signal_pending()
[linux-2.6-omap-h63xx.git] / include / linux / tracehook.h
index 4c50e1b573494cc83e3ee3b9b584244f4f2b4281..43bc51b6bd33e7783ef61c1b049ee9c71276b8ff 100644 (file)
@@ -422,6 +422,20 @@ static inline int tracehook_consider_fatal_signal(struct task_struct *task,
        return (task_ptrace(task) & PT_PTRACED) != 0;
 }
 
+/**
+ * tracehook_force_sigpending - let tracing force signal_pending(current) on
+ *
+ * Called when recomputing our signal_pending() flag.  Return nonzero
+ * to force the signal_pending() flag on, so that tracehook_get_signal()
+ * will be called before the next return to user mode.
+ *
+ * Called with @current->sighand->siglock held.
+ */
+static inline int tracehook_force_sigpending(void)
+{
+       return 0;
+}
+
 /**
  * tracehook_get_signal - deliver synthetic signal to traced task
  * @task:              @current