]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/tracehook.h
lcd: add SPI-based LCD and backlight driver for SHARP corgi/spitz
[linux-2.6-omap-h63xx.git] / include / linux / tracehook.h
index ab3ef7aefa9593dcfcf3f531666eba2c1c8f2a2f..6186a789d6c7a2f6d5c3ce7a3651a1db184b67ed 100644 (file)
@@ -272,7 +272,7 @@ static inline void tracehook_finish_clone(struct task_struct *child,
  * tracehook_report_clone_complete().  This must prevent the child from
  * self-reaping if tracehook_report_clone_complete() uses the @child
  * pointer; otherwise it might have died and been released by the time
- * tracehook_report_report_clone_complete() is called.
+ * tracehook_report_clone_complete() is called.
  *
  * Called with no locks held, but the child cannot run until this returns.
  */
@@ -280,7 +280,7 @@ static inline void tracehook_report_clone(int trace, struct pt_regs *regs,
                                          unsigned long clone_flags,
                                          pid_t pid, struct task_struct *child)
 {
-       if (unlikely(trace)) {
+       if (unlikely(trace) || unlikely(clone_flags & CLONE_PTRACE)) {
                /*
                 * The child starts up with an immediate SIGSTOP.
                 */