Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256865
b: refs/heads/master
c: dcace06
h: refs/heads/master
i:
  256863: 7d9d9c2
v: v3
  • Loading branch information
Oleg Nesterov committed Jul 17, 2011
1 parent 27f3c22 commit 0f4ac9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6634ae1033ceaeca5877dd75723210f8c2648c17
refs/heads/master: dcace06cc29df927a74a6bc0e57b9bef87704377
3 changes: 3 additions & 0 deletions trunk/include/linux/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ static inline void ptrace_init_task(struct task_struct *child, bool ptrace)
if (unlikely(ptrace) && current->ptrace) {
child->ptrace = current->ptrace;
__ptrace_link(child, current->parent);

sigaddset(&child->pending.signal, SIGSTOP);
set_tsk_thread_flag(child, TIF_SIGPENDING);
}
}

Expand Down
12 changes: 0 additions & 12 deletions trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include <linux/swap.h>
#include <linux/syscalls.h>
#include <linux/jiffies.h>
#include <linux/tracehook.h>
#include <linux/futex.h>
#include <linux/compat.h>
#include <linux/kthread.h>
Expand Down Expand Up @@ -1521,17 +1520,6 @@ long do_fork(unsigned long clone_flags,

audit_finish_fork(p);

/*
* Child is ready but hasn't started running yet. Queue
* SIGSTOP if it's gonna be ptraced - it doesn't matter who
* attached/attaching to this task, the pending SIGSTOP is
* right in any case.
*/
if (unlikely(p->ptrace)) {
sigaddset(&p->pending.signal, SIGSTOP);
set_tsk_thread_flag(p, TIF_SIGPENDING);
}

/*
* We set PF_STARTING at creation in case tracing wants to
* use this to distinguish a fully live task from one that
Expand Down

0 comments on commit 0f4ac9c

Please sign in to comment.