diff options
author | Sean Eric Fagan <sef@FreeBSD.org> | 1997-12-06 04:11:14 +0000 |
---|---|---|
committer | Sean Eric Fagan <sef@FreeBSD.org> | 1997-12-06 04:11:14 +0000 |
commit | 2a024a2b050c695d6e91e22374806cc3efaa60b2 (patch) | |
tree | 6532da7d9d1ad16542fbcdf34502b9d8ad15eb84 /sys/miscfs/procfs/procfs_subr.c | |
parent | ceb0cf87e893efc7331317d58fa5ddeadd8fa2a0 (diff) |
Changes to allow event-based process monitoring and control.
Notes
Notes:
svn path=/head/; revision=31564
Diffstat (limited to 'sys/miscfs/procfs/procfs_subr.c')
-rw-r--r-- | sys/miscfs/procfs/procfs_subr.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c index 42e9bf4af7d4..b77489b12d35 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)); + } +} |