]> err.no Git - linux-2.6/blobdiff - include/linux/tracehook.h
Merge branch 'drm-patches' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
[linux-2.6] / include / linux / tracehook.h
index ab3ef7aefa9593dcfcf3f531666eba2c1c8f2a2f..b48d8196957436284c429e1d196c434459d8f0be 100644 (file)
@@ -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.
                 */