mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
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:
parent
2aefabe1a2
commit
57d588608c
@ -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. */
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user