freebsd-skq/lib/libthr
Konstantin Belousov 4dafad49c6 Do not leak curthread->inact_mtx when cancelling in pthread_cond_wait(3).
Leave robust-protected region before checking for cancellation by
calling _thr_testcancel().  Otherwise, if cancelling request was
pending, the cancel handler is called with the dandling inact_mtx,
which triggers an assert if any mutex operation is performed by the
handler.

Reported and tested by:	Dimitri Staessens <dimitri.staessens@intec.ugent.be>
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2016-12-06 17:13:17 +00:00
..
arch [mips] convert over =v to =r for the inline assembly. 2016-08-14 19:04:37 +00:00
support When MAKEOBJDIRPREFIX points to a case-insensitive file system, the 2016-09-24 15:11:27 +00:00
sys
tests
thread Do not leak curthread->inact_mtx when cancelling in pthread_cond_wait(3). 2016-12-06 17:13:17 +00:00
libthr.3
Makefile
Makefile.depend
plockstat.d
pthread.map