This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Cygwin: timerfd: avoid a deadlock
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin-patches at cygwin dot com" <cygwin-patches at cygwin dot com>
- Date: Mon, 24 Jun 2019 20:21:22 +0000
- Subject: Re: [PATCH] Cygwin: timerfd: avoid a deadlock
- References: <20190624201852.26148-1-kbrown@cornell.edu>
On 6/24/2019 4:19 PM, Ken Brown wrote:
> If a timer expires while the timerfd thread is in its inner loop,
> check for the thread cancellation event before trying to enter
> a_critical_section. It's possible that 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.
There's a stupid typo ("a_critical_section") above. I'll fix it before
committing, if the patch is accepted.
Ken