summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_prot.c
diff options
context:
space:
mode:
authorsef <sef@FreeBSD.org>2000-01-10 04:09:05 +0000
committersef <sef@FreeBSD.org>2000-01-10 04:09:05 +0000
commit31b9ca1819116012a8cd7a78cce90b0820aac53e (patch)
treedf5ccadb71b85185101693e26b24562f864636cc /sys/kern/kern_prot.c
parent3452c8e1b7ed8a214ae8748f449dd9363cee9920 (diff)
downloadFreeBSD-src-31b9ca1819116012a8cd7a78cce90b0820aac53e.zip
FreeBSD-src-31b9ca1819116012a8cd7a78cce90b0820aac53e.tar.gz
Handle the case where we truss an SUGID program -- in particular, we need
to wake up any processes waiting via PIOCWAIT on process exit, and truss needs to be more aware that a process may actually disappear while it's waiting. Reviewed by: Paul Saab <ps@yahoo-inc.com>
Diffstat (limited to 'sys/kern/kern_prot.c')
-rw-r--r--sys/kern/kern_prot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 306b36c..e2a4f44 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -932,6 +932,6 @@ setsugid(p)
struct proc *p;
{
p->p_flag |= P_SUGID;
- if (p->p_pfsflags & PF_ISUGID)
+ if (!(p->p_pfsflags & PF_ISUGID))
p->p_stops = 0;
}
OpenPOWER on IntegriCloud