bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH hurd 2/2] utils/rpctrace: fix notification port handling


From: Samuel Thibault
Subject: Re: [PATCH hurd 2/2] utils/rpctrace: fix notification port handling
Date: Tue, 20 Jan 2015 21:35:50 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Tue 20 Jan 2015 20:30:59 +0100, a écrit :
> * utils/rpctrace.c (new_receiver_info): Fix handling of old
> notification port.

Ack, thanks!

> ---
>  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)
> -- 
> 2.1.4
> 

-- 
Samuel
Actually, typing random strings in the Finder does the equivalent of
filename completion.
(Discussion in comp.os.linux.misc on the intuitiveness of commands: file
completion vs. the Mac Finder.)



reply via email to

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