Subject: Re: bug#22534: File notify broken on Windows

From: Eli Zaretskii <[email-masked]>
Date: Fri, 12 Feb 2016 10:38:19 +0200

> From: Fabrice Popineau <[email-masked]>
> Date: Thu, 11 Feb 2016 16:19:49 +0100
> Cc: Michael Albinus <[email-masked]>, [email-masked]
> 
> Some information regarding the original problem.

Thanks.

> The first diagnostic is that QueueUserAPC shouldn't fail with error 31.
> This happens because the worker thread is already terminating, but that does not leave
> a chance for watch_end to run.

Aren't those the cases when the parent directory of the files being
watched is deleted?  If so, do you see how to prevent the thread from
terminating abnormally?