1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

rescure comments from RELENG_4.

This commit is contained in:
David Xu 2010-09-01 01:26:07 +00:00
parent 881f6af44b
commit 137cf33d5e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212075

View File

@ -2140,6 +2140,10 @@ tdsendsignal(struct proc *p, struct thread *td, int sig, ksiginfo_t *ksi)
*/
if (P_SHOULDSTOP(p)) {
if (sig == SIGKILL) {
/*
* If traced process is already stopped,
* then no further action is necessary.
*/
if (p->p_flag & P_TRACED)
goto out;
/*
@ -2152,6 +2156,10 @@ tdsendsignal(struct proc *p, struct thread *td, int sig, ksiginfo_t *ksi)
}
if (prop & SA_CONT) {
/*
* If traced process is already stopped,
* then no further action is necessary.
*/
if (p->p_flag & P_TRACED)
goto out;
/*
@ -2198,6 +2206,10 @@ tdsendsignal(struct proc *p, struct thread *td, int sig, ksiginfo_t *ksi)
}
if (prop & SA_STOP) {
/*
* If traced process is already stopped,
* then no further action is necessary.
*/
if (p->p_flag & P_TRACED)
goto out;
/*