This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 (),


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]