Artifacts Associated With Ticket 0405863236
Ticket change [f895e7fff6] (rid 159084) by chw on 2017-11-30 08:20:14:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In the new poll based UN*X notifier there seems to be a logic error in the TclUnixWaitForFile function. After calling poll the events field of struct pollfd is checked for POLLIN et.al. but the returned events are reported in the revents field according to the poll man page.
- foundin initialized to: "current trunk"
- is_private initialized to: "0"
- login: "chw"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "chw"
- subsystem initialized to: "01. Notifier"
- title initialized to:
wrong field checked in struct pollfd in TclUnixWaitForFile
- type initialized to: "Bug"
Ticket change [cb63364f04] (rid 159434) by chw on 2017-12-09 19:03:50:
- icomment:
Index: unix/tclUnixNotfy.c ================================================================== --- unix/tclUnixNotfy.c +++ unix/tclUnixNotfy.c @@ -530,17 +530,17 @@ } } numFound = poll(pollFds, 1, pollTimeout); if (numFound == 1) { result = 0; - if (pollFds[0].events & (POLLIN | POLLHUP)) { + if (pollFds[0].revents & (POLLIN | POLLHUP)) { result |= TCL_READABLE; } - if (pollFds[0].events & POLLOUT) { + if (pollFds[0].revents & POLLOUT) { result |= TCL_WRITABLE; } - if (pollFds[0].events & POLLERR) { + if (pollFds[0].revents & POLLERR) { result |= TCL_EXCEPTION; } if (result) { break; } - login: "chw"
- mimetype: "text/plain"
- icomment:
Ticket change [185c6a5880] (rid 159447) by jan.nijtmans on 2017-12-10 14:39:21:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2458098.11066186"
- closer changed to: "jan.nijtmans"
- icomment:
Thank you Christian! It's indeed a subtile difference, extremely difficult to catch in a test-case as it is very timing-sensitive. However, I think you are right! Committed to core-8-branch and trunk
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"