commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 01/10: fshelp: Fix fetching control ports.


From: Samuel Thibault
Subject: [hurd] 01/10: fshelp: Fix fetching control ports.
Date: Sun, 19 Nov 2017 15:27:17 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 7b9011628ec0dea3e01b19b75013ce5cf5b9c841
Author: Justus Winter <address@hidden>
Date:   Thu Sep 21 14:22:33 2017 +0200

    fshelp: Fix fetching control ports.
    
    * libfshelp/fetch-control.c (fshelp_fetch_control): When a port is
    stale, do not try to deallocate it.
---
 libfshelp/fetch-control.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/libfshelp/fetch-control.c b/libfshelp/fetch-control.c
index 0a11197..3b05e11 100644
--- a/libfshelp/fetch-control.c
+++ b/libfshelp/fetch-control.c
@@ -32,11 +32,7 @@ fshelp_fetch_control (struct transbox *box,
                               MACH_PORT_RIGHT_SEND, 1);
 
   if (err == KERN_INVALID_RIGHT)
-    {
-      err = mach_port_deallocate (mach_task_self (), *control);
-      assert_perror_backtrace (err);
-      *control = box->active = MACH_PORT_NULL;
-    }
+    *control = box->active = MACH_PORT_NULL;
 
   return err;
 }

-- 
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]