[PATCH v2] Cygwin: timerfd: avoid a deadlock

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Jun 25 18:43:00 GMT 2019


On Jun 25 14:25, Ken Brown wrote:
> Add a function timerfd_tracker::enter_critical_section_cancelable,
> which is like enter_critical_section but honors a cancel event.  Call
> this when a timer expires while the timerfd thread is in its inner
> loop.  This avoids a deadlock if timerfd_tracker::dtor has entered its
> critical section and is trying to cancel the thread.  See
> http://www.cygwin.org/ml/cygwin/2019-06/msg00096.html.
> ---
>  winsup/cygwin/timerfd.cc | 24 +++++++++++++++++++++++-
>  winsup/cygwin/timerfd.h  |  2 ++
>  2 files changed, 25 insertions(+), 1 deletion(-)

LGTM.  Please push.  Can you add a bugfix release msg to release/3.10,
please?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20190625/c7c8dbe7/attachment.sig>


More information about the Cygwin-patches mailing list