diff options
author | 2014-09-08 01:47:05 +0000 | |
---|---|---|
committer | 2014-09-08 01:47:05 +0000 | |
commit | cf6677a65b386628719094fda053786604840618 (patch) | |
tree | 88469f20f89a186bf78b27a6374674fe7f450aa0 /sys/kern/kern_exec.c | |
parent | obvious cases of missing .An; (diff) | |
download | wireguard-openbsd-cf6677a65b386628719094fda053786604840618.tar.xz wireguard-openbsd-cf6677a65b386628719094fda053786604840618.zip |
Delete procfs; it's always had races and is now unused: no one noticed for
months that I broke it before the 5.5 release.
confirmed as not being required by ports by sthen@, ajacoutot@, dcoppa@
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 5751a840085..0fbe007a905 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.144 2014/07/12 18:43:32 tedu Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.145 2014/09/08 01:47:06 guenther Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -473,7 +473,7 @@ sys_execve(struct proc *p, void *v, register_t *retval) bcopy(nid.ni_cnd.cn_nameptr, p->p_comm, len); pr->ps_acflag &= ~AFORK; - /* record proc's vnode, for use by procfs and others */ + /* record proc's vnode, for use by sysctl */ otvp = pr->ps_textvp; vref(pack.ep_vp); pr->ps_textvp = pack.ep_vp; @@ -537,17 +537,6 @@ sys_execve(struct proc *p, void *v, register_t *retval) * shared because we're suid. */ fp = fd_getfile(p->p_fd, i); -#ifdef PROCFS - /* - * Close descriptors that are writing to procfs. - */ - if (fp && fp->f_type == DTYPE_VNODE && - ((struct vnode *)(fp->f_data))->v_tag == VT_PROCFS && - (fp->f_flag & FWRITE)) { - fdrelease(p, i); - fp = NULL; - } -#endif /* * Ensure that stdin, stdout, and stderr are already |