Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Unshare the file descriptor table and `cwdinfo' whe...
details: https://anonhg.NetBSD.org/src/rev/8c65a46aa144
branches: trunk
changeset: 512836:8c65a46aa144
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jul 18 05:34:37 2001 +0000
description:
Unshare the file descriptor table and `cwdinfo' when we exec.
>From Matthew Orgass <darkstar%pgh.net@localhost>.
diffstat:
sys/kern/kern_descrip.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r ee43218d7a12 -r 8c65a46aa144 sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c Wed Jul 18 04:51:54 2001 +0000
+++ b/sys/kern/kern_descrip.c Wed Jul 18 05:34:37 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_descrip.c,v 1.79 2001/07/01 18:12:00 thorpej Exp $ */
+/* $NetBSD: kern_descrip.c,v 1.80 2001/07/18 05:34:37 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -1363,6 +1363,9 @@
struct filedesc *fdp;
int fd;
+ fdunshare(p);
+ cwdunshare(p);
+
fdp = p->p_fd;
for (fd = 0; fd <= fdp->fd_lastfile; fd++)
if (fdp->fd_ofileflags[fd] & UF_EXCLOSE)
Home |
Main Index |
Thread Index |
Old Index