This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH,HURD] setitimer.c: Fix unlock in error patch
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: roland at gnu dot org
- Cc: libc-alpha at sources dot redhat dot com
- Date: Sun, 1 Feb 2009 17:56:55 +0100
- Subject: [PATCH,HURD] setitimer.c: Fix unlock in error patch
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 (),