Fix problem when attached process detached

Submitted by: Gary Jennejohn
This commit is contained in:
Andrey A. Chernov 1994-12-31 12:26:50 +00:00
parent 31e98e3f62
commit 16e544e7a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5312
2 changed files with 10 additions and 2 deletions

View file

@ -36,7 +36,7 @@
*
* @(#)procfs_ctl.c 8.3 (Berkeley) 1/21/94
*
* $Id: procfs_ctl.c,v 1.1.1.1 1994/05/24 10:05:10 rgrimes Exp $
* $Id: procfs_ctl.c,v 1.2 1994/08/02 07:45:10 davidg Exp $
*/
#include <sys/param.h>
@ -50,6 +50,7 @@
#include <sys/resource.h>
#include <sys/resourcevar.h>
#include <miscfs/procfs/procfs.h>
#include <sys/signal.h> /* for sigmask() */
/*
* True iff process (p) is in trace wait state
@ -186,6 +187,9 @@ procfs_control(curp, p, op)
/* not being traced any more */
p->p_flag &= ~P_TRACED;
/* remove pending SIGTRAP, else the process will die */
p->p_siglist &= ~sigmask (SIGTRAP);
/* give process back to original parent */
if (p->p_oppid != p->p_pptr->p_pid) {
struct proc *pp;

View file

@ -36,7 +36,7 @@
*
* @(#)procfs_ctl.c 8.3 (Berkeley) 1/21/94
*
* $Id: procfs_ctl.c,v 1.1.1.1 1994/05/24 10:05:10 rgrimes Exp $
* $Id: procfs_ctl.c,v 1.2 1994/08/02 07:45:10 davidg Exp $
*/
#include <sys/param.h>
@ -50,6 +50,7 @@
#include <sys/resource.h>
#include <sys/resourcevar.h>
#include <miscfs/procfs/procfs.h>
#include <sys/signal.h> /* for sigmask() */
/*
* True iff process (p) is in trace wait state
@ -186,6 +187,9 @@ procfs_control(curp, p, op)
/* not being traced any more */
p->p_flag &= ~P_TRACED;
/* remove pending SIGTRAP, else the process will die */
p->p_siglist &= ~sigmask (SIGTRAP);
/* give process back to original parent */
if (p->p_oppid != p->p_pptr->p_pid) {
struct proc *pp;