Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25712
b: refs/heads/master
c: e57a505
h: refs/heads/master
v: v3
  • Loading branch information
Roland McGrath authored and Linus Torvalds committed Apr 14, 2006
1 parent 0ee72fd commit b643d62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 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: c06511d12d720b23c8dffff23004f0a888698f20
refs/heads/master: e57a5059846e55d82b86d96dde40e988598601b3
7 changes: 2 additions & 5 deletions trunk/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ void ptrace_untrace(task_t *child)
signal_wake_up(child, 1);
}
}
if (child->signal->flags & SIGNAL_GROUP_EXIT) {
sigaddset(&child->pending.signal, SIGKILL);
signal_wake_up(child, 1);
}
spin_unlock(&child->sighand->siglock);
}

Expand All @@ -81,7 +77,8 @@ void __ptrace_unlink(task_t *child)
add_parent(child);
}

ptrace_untrace(child);
if (child->state == TASK_TRACED)
ptrace_untrace(child);
}

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1754,9 +1754,9 @@ int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka,
/* Let the debugger run. */
ptrace_stop(signr, signr, info);

/* We're back. Did the debugger cancel the sig or group_exit? */
/* We're back. Did the debugger cancel the sig? */
signr = current->exit_code;
if (signr == 0 || current->signal->flags & SIGNAL_GROUP_EXIT)
if (signr == 0)
continue;

current->exit_code = 0;
Expand Down

0 comments on commit b643d62

Please sign in to comment.