summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index bbf939c..1084f48 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -6,7 +6,6 @@
#include <kernel/panic.h>
#include <kernel/proc.h>
#include <kernel/vfs/mount.h>
-#include <kernel/vfs/procfs.h>
#include <shared/mem.h>
#include <stdint.h>
@@ -384,7 +383,6 @@ void proc_tryreap(Proc *dead) {
return; /* keep the tombstone */
}
- handle_close(dead->specialh.procfs);
assert(dead->refcount == 0);
if (parent) { /* not applicable to init */
proc_forget(dead);
@@ -513,18 +511,6 @@ Handle *proc_handle_get(Proc *p, hid_t id) {
.refcount = 2, /* never free */
};
return &h;
- } else if (id == HANDLE_PROCFS) {
- if (!p->specialh.procfs) {
- Handle *h = kmalloc(sizeof *h);
- proc_ns_create(p);
- *h = (Handle){
- .type = HANDLE_FS_FRONT,
- .backend = procfs_backend(p),
- .refcount = 1,
- };
- p->specialh.procfs = h;
- }
- return p->specialh.procfs;
} else if (0 <= id && id < HANDLE_MAX) {
return p->_handles[id];
} else {