Merge branch 'for-3.17/core' of git://git.kernel.dk/linux-block
[deliverable/linux.git] / kernel / ptrace.c
index adf98622cb32bdf0b995d25ca0c4477c098e9bcc..54e75226c2c490d04fb1d57c9c441c93ea8c0af0 100644 (file)
 #include <linux/compat.h>
 
 
-static int ptrace_trapping_sleep_fn(void *flags)
-{
-       schedule();
-       return 0;
-}
-
 /*
  * ptrace a task: make the debugger its new parent and
  * move it to the ptrace list.
@@ -371,7 +365,7 @@ unlock_creds:
 out:
        if (!retval) {
                wait_on_bit(&task->jobctl, JOBCTL_TRAPPING_BIT,
-                           ptrace_trapping_sleep_fn, TASK_UNINTERRUPTIBLE);
+                           TASK_UNINTERRUPTIBLE);
                proc_ptrace_connector(task, PTRACE_ATTACH);
        }
 
This page took 0.037348 seconds and 5 git commands to generate.