diff options
author | sef <sef@FreeBSD.org> | 1997-12-08 01:06:36 +0000 |
---|---|---|
committer | sef <sef@FreeBSD.org> | 1997-12-08 01:06:36 +0000 |
commit | 287c0e3604b769c59f576c3964642715079a76f4 (patch) | |
tree | 409e9c1a735c2dd89128df90141f54a93b1e8b3e /sys/kern/kern_exit.c | |
parent | 2484645f8d9962470a0283fa60ae8e3162098cc2 (diff) | |
download | FreeBSD-src-287c0e3604b769c59f576c3964642715079a76f4.zip FreeBSD-src-287c0e3604b769c59f576c3964642715079a76f4.tar.gz |
Use at_exit() to invoke procfs_exit() instead of calling it directly.
Note that an unload facility should be used to call rm_at_exit() (if
procfs is being loaded as an LKM and is subsequently removed), but it
was non-obvious how to do this in the VFS framework.
Reviewed by: Julian Elischer
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 88c78a1..a68949b 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 - * $Id: kern_exit.c,v 1.61 1997/12/06 04:11:10 sef Exp $ + * $Id: kern_exit.c,v 1.62 1997/12/07 18:16:43 sef Exp $ */ #include "opt_ktrace.h" @@ -114,9 +114,6 @@ exit1(p, rv) register struct proc *q, *nq; register struct vmspace *vm; ele_p ep = exit_list; -#ifdef PROCFS - extern void procfs_exit(pid_t); -#endif if (p->p_pid == 1) { printf("init died (signal %d, exit %d)\n", @@ -161,14 +158,6 @@ exit1(p, rv) #endif STOPEVENT(p, S_EXIT, rv); -#ifdef PROCFS - /* - * Now that we're back from stopevent(), force a close - * of all open procfs files for this process. - */ - procfs_exit(p->p_pid); -#endif - /* * Check if any LKMs need anything done at process exit. * e.g. SYSV IPC stuff |