summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-06-16 06:42:41 +0000
committerRoland McGrath <roland@gnu.org>2001-06-16 06:42:41 +0000
commit9e62de7a30214f0ba557f0474c0c698d50e78a04 (patch)
tree18479e828696dea381f49410698ff0213e4761d7
parentf5e5de2faa11e513e2de7b6cb56f098e7debb95c (diff)
2001-06-15 Roland McGrath <roland@frob.com>
* exec.c (do_exec: user_fd): Add a user ref to returned port.
-rw-r--r--exec/exec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c
index 31c51518..54475d79 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -1,5 +1,5 @@
/* GNU Hurd standard exec server.
- Copyright (C) 1992,93,94,95,96,98,99,2000 Free Software Foundation, Inc.
+ Copyright (C) 1992,93,94,95,96,98,99,2000,01 Free Software Foundation, Inc.
Written by Roland McGrath.
Can exec ELF format directly.
@@ -1692,6 +1692,8 @@ do_exec (file_t file,
errno = EBADF;
return MACH_PORT_NULL;
}
+ mach_port_mod_refs (mach_task_self (), boot->dtable[fd],
+ MACH_PORT_RIGHT_SEND, +1);
return boot->dtable[fd];
}
/* XXX/fault */