Being someone that eats their own dogfood, I run Watchdir to wait for directory events at work. I had been told that in rare cases, the job that was running the program locked up. Unfortunately, this was the only information I had, and it was difficult to catch the problem, being so rare.
Today, I managed to see the problem. It turns out that I was clearing an event flag in a rather inappropriate place in the code, and it was possible for the blocking AST to fire before I cleared the event flag, causing the program to then clear the flag and wait forever.
X01-03 fixes this problem. You can download the new version here.
Posted at November 15, 2004 10:40 AMComments are closed