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]

Re: [PATCH] Fix nptl semaphore cleanup invocation


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.


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