diff options
author | davidxu <davidxu@FreeBSD.org> | 2010-09-01 01:26:07 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2010-09-01 01:26:07 +0000 |
commit | be8bfd2384601163d68720d6e4a562afc9e7303d (patch) | |
tree | 7d83057712f350abe684ccacedf25e303d519d07 /sys/kern/kern_sig.c | |
parent | 758b5f48ff31dc0cc917dcec5bf9051267a4254c (diff) | |
download | FreeBSD-src-be8bfd2384601163d68720d6e4a562afc9e7303d.zip FreeBSD-src-be8bfd2384601163d68720d6e4a562afc9e7303d.tar.gz |
rescure comments from RELENG_4.
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 9cbbe8d..f54d59e 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -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; /* |