commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 24/37: libfshelp: improve error handling


From: Samuel Thibault
Subject: [hurd] 24/37: libfshelp: improve error 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 106287af864c01f20c12d1a0a78a2469a27adc03
Author: Justus Winter <address@hidden>
Date:   Sat Jan 17 14:23:34 2015 +0100

    libfshelp: improve error handling
    
    * 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.
---
 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)

-- 
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]