diff options
| author | Don Lewis <truckman@FreeBSD.org> | 2004-02-19 10:39:42 +0000 |
|---|---|---|
| committer | Don Lewis <truckman@FreeBSD.org> | 2004-02-19 10:39:42 +0000 |
| commit | cf93aa166c9adbdfe92d0c66119ef3a153eed2d4 (patch) | |
| tree | fd8bb1acc701b8b2ad20ea14400a3a96ad7014d3 /sys/kern/sys_process.c | |
| parent | bddcdc51937a71c98decf93b12424f2c8e31856e (diff) | |
Notes
Diffstat (limited to 'sys/kern/sys_process.c')
| -rw-r--r-- | sys/kern/sys_process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 9a79551ed988..7a0c02ea01eb 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -561,7 +561,8 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data) PROC_UNLOCK(pp); PROC_LOCK(p); proc_reparent(p, pp); - p->p_sigparent = SIGCHLD; + if (pp == initproc) + p->p_sigparent = SIGCHLD; } p->p_flag &= ~(P_TRACED | P_WAITED); p->p_oppid = 0; |
