Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132517
b: refs/heads/master
c: 53da1d9
h: refs/heads/master
i:
  132515: cd66113
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Mar 23, 2009
1 parent 190bb8f commit dfc3f99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b0dcb4a91ddb79f2e213205cf8d86b467f8559c7
refs/heads/master: 53da1d9456fe7f87a920a78fdbdcf1225d197cb7
8 changes: 8 additions & 0 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,15 @@ static void ptrace_stop(int exit_code, int clear_code, siginfo_t *info)
read_lock(&tasklist_lock);
if (may_ptrace_stop()) {
do_notify_parent_cldstop(current, CLD_TRAPPED);
/*
* Don't want to allow preemption here, because
* sys_ptrace() needs this task to be inactive.
*
* XXX: implement read_unlock_no_resched().
*/
preempt_disable();
read_unlock(&tasklist_lock);
preempt_enable_no_resched();
schedule();
} else {
/*
Expand Down

0 comments on commit dfc3f99

Please sign in to comment.