[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd 1/7] libfshelp: improve error handling
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd 1/7] libfshelp: improve error handling |
Date: |
Sat, 17 Jan 2015 18:38:11 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Sat 17 Jan 2015 18:26:40 +0100, a écrit :
> * libfshelp/start-translator-long.c (fshelp_start_translator_long):
> Once we have a task, go to `lose_task' so that we do not leave hosed
> tasks around.
Ack, thanks!
> ---
> libfshelp/start-translator-long.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/libfshelp/start-translator-long.c
> b/libfshelp/start-translator-long.c
> index 64a20be..8b00e08 100644
> --- a/libfshelp/start-translator-long.c
> +++ b/libfshelp/start-translator-long.c
> @@ -232,7 +232,7 @@ fshelp_start_translator_long (fshelp_open_fn_t
> underlying_open_fn,
> err = task_priority(task, 25, FALSE);
>
> if (err)
> - goto lose;
> + goto lose_task;
>
> /* Designate TASK as our child and set it's owner accordingly. */
> proc = getproc ();
> @@ -240,11 +240,11 @@ fshelp_start_translator_long (fshelp_open_fn_t
> underlying_open_fn,
> err = proc_task2proc (proc, task, &childproc);
> mach_port_deallocate (mach_task_self (), proc);
> if (err)
> - goto lose;
> + goto lose_task;
> err = proc_setowner (childproc, owner_uid, owner_uid == (uid_t) -1);
> mach_port_deallocate (mach_task_self (), childproc);
> if (err)
> - goto lose;
> + goto lose_task;
>
> assert (ports_len > INIT_PORT_BOOTSTRAP);
> switch (ports_type)
> --
> 2.1.4
>
--
Samuel
* x remarque qu'avec un peu de volonté, on peut faire du code de porc
dans d'importe quel langage Turing-complet
-+- x sur #ens-mim - codons porc -+-
- [PATCH hurd 4/7] startup: give the tasks we create a name, (continued)
- [PATCH hurd 4/7] startup: give the tasks we create a name, Justus Winter, 2015/01/17
- [PATCH hurd 3/7] libports: silence pointless error message, Justus Winter, 2015/01/17
- [PATCH hurd 6/7] auth: remove implicit assumption about the bootstrap process, Justus Winter, 2015/01/17
- [PATCH hurd 7/7] proc: call `startup_essential_task' earlier, Justus Winter, 2015/01/17
- [PATCH hurd 5/7] auth: simplify expression, Justus Winter, 2015/01/17
- Re: [PATCH hurd 1/7] libfshelp: improve error handling,
Samuel Thibault <=