summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs/procfs_subr.c
diff options
context:
space:
mode:
authorsef <sef@FreeBSD.org>1997-12-06 04:11:14 +0000
committersef <sef@FreeBSD.org>1997-12-06 04:11:14 +0000
commitc7d273eccbdbad69eed3ca880a3956ca804a83c8 (patch)
tree213faf73090825488ed9bc01587c6f942d45f53e /sys/miscfs/procfs/procfs_subr.c
parent9821c0958535e623d28d6d4fc1d1ac205a20ec36 (diff)
downloadFreeBSD-src-c7d273eccbdbad69eed3ca880a3956ca804a83c8.zip
FreeBSD-src-c7d273eccbdbad69eed3ca880a3956ca804a83c8.tar.gz
Changes to allow event-based process monitoring and control.
Diffstat (limited to 'sys/miscfs/procfs/procfs_subr.c')
-rw-r--r--sys/miscfs/procfs/procfs_subr.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c
index 42e9bf4..b77489b 100644
--- a/sys/miscfs/procfs/procfs_subr.c
+++ b/sys/miscfs/procfs/procfs_subr.c
@@ -36,7 +36,7 @@
*
* @(#)procfs_subr.c 8.6 (Berkeley) 5/14/95
*
- * $Id: procfs_subr.c,v 1.16 1997/06/26 16:12:53 alex Exp $
+ * $Id: procfs_subr.c,v 1.17 1997/08/02 14:32:18 bde Exp $
*/
#include <sys/param.h>
@@ -351,3 +351,14 @@ vfs_findname(nm, buf, buflen)
return (0);
}
+
+void
+procfs_exit(pid_t pid)
+{
+ struct pfsnode *pfs;
+
+ for (pfs = pfshead; pfs ; pfs = pfs->pfs_next) {
+ if (pfs->pfs_pid == pid)
+ vgone(PFSTOV(pfs));
+ }
+}
OpenPOWER on IntegriCloud