From 9e62de7a30214f0ba557f0474c0c698d50e78a04 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Jun 2001 06:42:41 +0000 Subject: 2001-06-15 Roland McGrath * exec.c (do_exec: user_fd): Add a user ref to returned port. --- exec/exec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'exec') 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 */ -- cgit v1.2.3