commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 32/37: utils/rpctrace: fix notification port handling


From: Samuel Thibault
Subject: [hurd] 32/37: utils/rpctrace: fix notification port handling
Date: Mon, 09 Feb 2015 09:59:11 +0000

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

sthibault pushed a commit to annotated tag upstream/hurd/0.5.git20150208
in repository hurd.

commit ccee70dd9fc20a5b39c59b0a7dc8c72e2536ede9
Author: Justus Winter <address@hidden>
Date:   Tue Jan 20 20:10:08 2015 +0100

    utils/rpctrace: fix notification port handling
    
    * utils/rpctrace.c (new_receiver_info): Fix handling of old
    notification port.
---
 utils/rpctrace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/utils/rpctrace.c b/utils/rpctrace.c
index 62d3c87..48daa07 100644
--- a/utils/rpctrace.c
+++ b/utils/rpctrace.c
@@ -404,7 +404,8 @@ new_receiver_info (mach_port_t right, mach_port_t owner)
                                        MACH_MSG_TYPE_MAKE_SEND_ONCE, &foo);
   if (err)
     error (2, err, "mach_port_request_notification");
-  mach_port_deallocate (mach_task_self (), foo);
+  if (MACH_PORT_VALID (foo))
+    mach_port_deallocate (mach_task_self (), foo);
 
   err = hurd_ihash_add (&traced_names, info->forward, info);
   if (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]