bug-hurd
[Top][All Lists]
Advanced

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

Re: [RFC PATCH glibc 06/34] hurd: Swap around two function calls


From: Samuel Thibault
Subject: Re: [RFC PATCH glibc 06/34] hurd: Swap around two function calls
Date: Mon, 3 Apr 2023 00:54:41 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Applied, thanks!

Sergey Bugaev, le dim. 19 mars 2023 18:09:49 +0300, a ecrit:
> ...to keep `sigexc' port initialization in one place, and match what the
> comments say.
> 
> No functional change.
> 
> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
> ---
>  hurd/hurdfault.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/hurd/hurdfault.c b/hurd/hurdfault.c
> index a81e7280..4340897d 100644
> --- a/hurd/hurdfault.c
> +++ b/hurd/hurdfault.c
> @@ -174,14 +174,14 @@ _hurdsig_fault_init (void)
>    err = __mach_port_allocate (__mach_task_self (),
>                             MACH_PORT_RIGHT_RECEIVE, &sigexc);
>    assert_perror (err);
> -  err = __mach_port_allocate (__mach_task_self (),
> -                           MACH_PORT_RIGHT_RECEIVE, &forward_sigexc);
> +  err = __mach_port_insert_right (__mach_task_self (), sigexc,
> +                               sigexc, MACH_MSG_TYPE_MAKE_SEND);
>    assert_perror (err);
>  
>    /* Allocate a port to receive the exception msgs forwarded
>       from the proc server.  */
> -  err = __mach_port_insert_right (__mach_task_self (), sigexc,
> -                               sigexc, MACH_MSG_TYPE_MAKE_SEND);
> +  err = __mach_port_allocate (__mach_task_self (),
> +                           MACH_PORT_RIGHT_RECEIVE, &forward_sigexc);
>    assert_perror (err);
>  
>    /* Set the queue limit for this port to just one.  The proc server will
> -- 
> 2.39.2
> 

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.



reply via email to

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