diff options
author | ache <ache@FreeBSD.org> | 1994-12-31 12:26:50 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-12-31 12:26:50 +0000 |
commit | 15cd9ece1acf6f86c34d50b750dd5f4e7bb62ccc (patch) | |
tree | 0df1ea17b9077939362e10528566faeaa765ef33 /sys/miscfs/procfs/procfs_ctl.c | |
parent | fa1a1014f5bd2620eb37b17c30710002bdaa108f (diff) | |
download | FreeBSD-src-15cd9ece1acf6f86c34d50b750dd5f4e7bb62ccc.zip FreeBSD-src-15cd9ece1acf6f86c34d50b750dd5f4e7bb62ccc.tar.gz |
Fix problem when attached process detached
Submitted by: Gary Jennejohn
Diffstat (limited to 'sys/miscfs/procfs/procfs_ctl.c')
-rw-r--r-- | sys/miscfs/procfs/procfs_ctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_ctl.c b/sys/miscfs/procfs/procfs_ctl.c index 44ee3fd..b072367 100644 --- a/sys/miscfs/procfs/procfs_ctl.c +++ b/sys/miscfs/procfs/procfs_ctl.c @@ -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; |