bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 05/11] libports: improve error handling in ports_reallocate_f


From: Samuel Thibault
Subject: Re: [PATCH 05/11] libports: improve error handling in ports_reallocate_from_external
Date: Wed, 27 Nov 2013 22:45:39 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Wed 27 Nov 2013 13:31:12 +0100, a écrit :
> * libports/reallocate-from-external.c (ports_reallocate_from_external):
>   Improve error handling.

Ditto, ack.

> ---
>  libports/reallocate-from-external.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libports/reallocate-from-external.c 
> b/libports/reallocate-from-external.c
> index cd12143..8cccb2a 100644
> --- a/libports/reallocate-from-external.c
> +++ b/libports/reallocate-from-external.c
> @@ -60,7 +60,8 @@ ports_reallocate_from_external (void *portstruct, 
> mach_port_t receive)
>    pi->cancel_threshold = 0;
>    pi->mscount = stat.mps_mscount;
>    
> -  hurd_ihash_add (&pi->bucket->htable, receive, pi);
> +  err = hurd_ihash_add (&pi->bucket->htable, receive, pi);
> +  assert_perror (err);
>    pthread_mutex_unlock (&_ports_lock);
>    
>    mach_port_move_member (mach_task_self (), receive, pi->bucket->portset);
> -- 
> 1.7.10.4
> 

-- 
Samuel
<L> pour moi le seul qui est autorisé à fasciser, c moi :-)



reply via email to

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