Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256866
b: refs/heads/master
c: d184d6e
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov committed Jul 17, 2011
1 parent 0f4ac9c commit 2024980
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: dcace06cc29df927a74a6bc0e57b9bef87704377
refs/heads/master: d184d6eb1dc3c9869e25a8e422be5c55ab0db4ac
6 changes: 5 additions & 1 deletion trunk/include/linux/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ static inline void ptrace_init_task(struct task_struct *child, bool ptrace)
child->ptrace = current->ptrace;
__ptrace_link(child, current->parent);

sigaddset(&child->pending.signal, SIGSTOP);
if (child->ptrace & PT_SEIZED)
task_set_jobctl_pending(child, JOBCTL_TRAP_STOP);
else
sigaddset(&child->pending.signal, SIGSTOP);

set_tsk_thread_flag(child, TIF_SIGPENDING);
}
}
Expand Down

0 comments on commit 2024980

Please sign in to comment.