Overview
| Comment: | 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. |
|---|---|
| Timelines: | family | ancestors | descendants | both | unix-waitforfile-infinite-wait |
| Files: | files | file ages | folders |
| SHA3-256: |
65772037dd0f5167a37feb5296928504 |
| User & Date: | serhiy.storchaka on 2026-09-25 17:38:17.784 |
| Other Links: | branch diff | manifest | tags |
References
|
2026-09-25
| ||
| 17:39 | • Ticket [49538c09c8] TclUnixWaitForFile: infinite wait reads uninitialized "... artifact: 86b7b3f0ef user: serhiy.storchaka | |
Context
|
2026-10-11
| ||
| 21:01 | Fix [49538c09c8]: TclUnixWaitForFile: infinite wait may return early check-in: 614f5eb377 user: jan.nijtmans tags: trunk, main | |
|
2026-09-25
| ||
| 17:38 | Fix [49538c09c8]: TclUnixWaitForFile: infinite wait reads uninitialized "now" and may return early. ... closed check-in: 65772037dd user: serhiy.storchaka tags: unix-waitforfile-infinite-wait | |
|
2026-09-24
| ||
| 18:37 | Test suite hygiene. Providing missing constraints and other limitations. check-in: 2ffe47a9cf user: dgp tags: trunk, main | |
Changes
Modified tests/event.test
from [eb7488de56]
to [2f4ff13b84].
[diff]
Modified unix/tclUnixNotfy.c
from [ebb12f1903]
to [48c4c51e5d].
[diff]