commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 02/04: Fix spurious port deallocation


From: Samuel Thibault
Subject: [hurd] 02/04: Fix spurious port deallocation
Date: Wed, 23 Mar 2016 22:48:04 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 03f8e9b08a9d4f5034ea1a27c3a8e86d9b147306
Author: Samuel Thibault <address@hidden>
Date:   Sat Mar 19 03:06:26 2016 +0100

    Fix spurious port deallocation
    
    * libfshelp/fetch-root.c (fshelp_fetch_root): When translator has died, do
    not deallocate its control port twice.
---
 libfshelp/fetch-root.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index d7761e5..cc9fa50 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -189,7 +189,8 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
   if ((err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED)
       && control == box->active)
     fshelp_set_active (box, MACH_PORT_NULL, 0);
-  mach_port_deallocate (mach_task_self (), control);
+  else
+    mach_port_deallocate (mach_task_self (), control);
 
   if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED)
     goto start_over;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]