1999-07-17 Roland McGrath <roland@baalperazim.frob.com>

* hurd/hurdexec.c (_hurd_exec): Prune trailing null ports from the
	descriptor table sent in the RPC.
This commit is contained in:
Roland McGrath 1999-07-20 21:04:41 +00:00
parent 2aefabe1a2
commit 57d588608c

View File

@ -186,6 +186,10 @@ _hurd_exec (task_t task, file_t file,
dtable_cells = NULL;
}
/* Prune trailing null ports from the descriptor table. */
while (dtable[dtablesize - 1] == MACH_PORT_NULL)
--dtablesize;
/* The information is all set up now. Try to exec the file. */
{