[PATCH,HURD] setitimer.c: Fix unlock in error patch
Samuel Thibault
samuel.thibault@ens-lyon.org
Sun Feb 1 17:13:00 GMT 2009
Hello,
In some error path, setitimer_locked would not perform unlocking, here
is a patch.
Samuel
2009-02-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
* sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit path
instead of returning without unlocking.
--- ./sysdeps/mach/hurd/setitimer.c.orig 2009-02-01 16:02:06.000000000 +0100
+++ ./sysdeps/mach/hurd/setitimer.c 2009-02-01 16:02:13.000000000 +0100
@@ -220,7 +220,7 @@
/* Start up the itimer thread running `timer_thread' (below). */
if (err = __thread_create (__mach_task_self (),
&_hurd_itimer_thread))
- return __hurd_fail (err);
+ goto out;
_hurd_itimer_thread_stack_base = 0; /* Anywhere. */
_hurd_itimer_thread_stack_size = __vm_page_size; /* Small stack. */
if ((err = __mach_setup_thread (__mach_task_self (),
More information about the Libc-alpha
mailing list