[PATCH] Fix nptl semaphore cleanup invocation

David Miller davem@davemloft.net
Tue Sep 6 14:51:00 GMT 2011


From: David Miller <davem@davemloft.net>
Date: Fri, 02 Sep 2011 21:29:20 -0400 (EDT)

> From: Roland McGrath <roland@hack.frob.com>
> Date: Fri,  2 Sep 2011 14:50:51 -0700 (PDT)
> 
>>> +do_futex_timed_wait(struct new_sem *isem, struct timespec *rt)
>>                       ^ space here
> 
> Thanks, that's more helpful.
> 
> 2011-09-02  David S. Miller  <davem@davemloft.net>
> 
> 	* sysdeps/unix/sysv/linux/sem_timedwait.c (do_futex_timed_wait):
> 	New function.
> 	(sem_timedwait): Call it to force an exception region around
> 	the async cancel enable and the futex operation.
> 	* sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Likewise.
> 	* sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Likewise.
> 	* sysdeps/unix/sysv/linux/sem_wait.c (do_futex_wait): New function.
> 	(__new_sem_wait): Call it to force an exception region around
> 	the async cancel enable and the futex operation.
> 	* sysdeps/unix/sysv/linux/sparc/sem_wait.c: Likewise.
> 	* sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Likewise.

Just FYI, I've commited this to master.



More information about the Libc-alpha mailing list