diff options
author | David Greenman <dg@FreeBSD.org> | 1994-09-24 16:58:43 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 1994-09-24 16:58:43 +0000 |
commit | 2a531c809e3b9d942e6534464ae977404dbb5c30 (patch) | |
tree | 5d3b6aa214e66a027ada7568dd0cebf7dfff4812 /sys/kern/kern_exec.c | |
parent | 89f81043d0508690b9ce912bb7cf250192913401 (diff) | |
download | src-2a531c809e3b9d942e6534464ae977404dbb5c30.tar.gz src-2a531c809e3b9d942e6534464ae977404dbb5c30.zip |
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 03715950cd75..2e8d719cb319 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_exec.c,v 1.6 1994/09/13 14:46:50 dfr Exp $ + * $Id: kern_exec.c,v 1.7 1994/09/14 05:52:13 davidg Exp $ */ #include <sys/param.h> @@ -272,6 +272,14 @@ interpret: ndp->ni_vp->v_flag |= VTEXT; /* + * Store the vp for use in procfs + */ + if (p->p_textvp) /* release old reference */ + vrele(p->p_textvp); + VREF(ndp->ni_vp); + p->p_textvp = ndp->ni_vp; + + /* * If tracing the process, trap to debugger so breakpoints * can be set before the program executes. */ |