2026-09-25 17:38:17
— part of check-in
[65772037dd]
on branch unix-waitforfile-infinite-wait
— Fix [49538c09c8]: TclUnixWaitForFile: infinite wait reads uninitialized "now" and may return early. With a negative timeout, "continue" in the do-while loop evaluated "abortTime > now" with an uninitialized "now", so if poll() returned without a requested event (e.g. EINTR on a signal), the function could return 0 although it should wait forever. Use while (1) with an explicit timeout check, as in the macOS version. New test event-13.9.
(user:
serhiy.storchaka,
size: 16807)
[annotate]
[blame][check-ins using]