Skip to content
Tcl Source Code History Of Ticket 040586323610be22
Login

History Of Ticket 040586323610be22

Artifacts Associated With Ticket 040586323610be22

  1. Ticket change [f895e7fff6] (rid 159084) by chw on 2017-11-30 08:20:14:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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.
      
    5. foundin initialized to: "current trunk"
    6. is_private initialized to: "0"
    7. login: "chw"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
    10. resolution initialized to: "None"
    11. severity initialized to: "Critical"
    12. status initialized to: "Open"
    13. submitter initialized to: "chw"
    14. subsystem initialized to: "01. Notifier"
    15. title initialized to:
      wrong field checked in struct pollfd in TclUnixWaitForFile
      
    16. type initialized to: "Bug"
  2. Ticket change [cb63364f04] (rid 159434) by chw on 2017-12-09 19:03:50:

    1. 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;
       	    }
      
    2. login: "chw"
    3. mimetype: "text/plain"
  3. Ticket change [185c6a5880] (rid 159447) by jan.nijtmans on 2017-12-10 14:39:21:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2458098.11066186"
    3. closer changed to: "jan.nijtmans"
    4. 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
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"