From 57d588608cf1f8b9c4455a3f285c6eba1f95bb14 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 20 Jul 1999 21:04:41 +0000 Subject: 1999-07-17 Roland McGrath * hurd/hurdexec.c (_hurd_exec): Prune trailing null ports from the descriptor table sent in the RPC. --- hurd/hurdexec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hurd/hurdexec.c') diff --git a/hurd/hurdexec.c b/hurd/hurdexec.c index 18ad9ef38d..30a27e8048 100644 --- a/hurd/hurdexec.c +++ b/hurd/hurdexec.c @@ -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. */ { -- cgit v1.2.3