Skip to content
Tcl Source Code History Of Ticket 1071807fffffffff
Login

History Of Ticket 1071807fffffffff

Artifacts Associated With Ticket 1071807fffffffff

  1. Ticket change [fe99133ff0] (rid 108617) by eyekode on 2004-11-23 15:42:01:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      On Sun 64 platforms the math for calculating the fd_set
      bit is wrong. 
      
      tclUnixNotfy.c:443
      bit = 1 << (fd%(NBBY*sizeof(fd_mask)));
       
      sizeof(fd_mask) is 8, but sizeof(1) is 4. The easiest
      fix for this is to change bit && "1" to unsigned long.
      Note: this code pattern is copy/pasted throughout this
      file, and all places need to be fixed. However, out of
      curiosity, why aren't we using FD_SET/ISSET etc?
      
      
    4. foundin initialized to: "obsolete: 8.4.8"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "eyekode"
    9. subsystem initialized to: "01. Notifier"
    10. title initialized to: "select() loop notifys wrong fd's"
    11. type initialized to: "Bug"
  2. Ticket change [5a877ef705] (rid 118154) by kennykb on 2004-11-23 22:51:03:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      The fact that we don't use FD_SET/FD_ISSET is
      quite an archaeism. At the time the code was
      written, there were still a fair number of non-POSIX
      operating systems out there that didn't have
      the FD_ macros.
      
      I'll have a look at this. FD_SET and FD_ISSET are
      clearly preferable if they work everywhere now
      (as I believe they do).
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  3. Ticket change [dd7eb8b758] (rid 114679) by kennykb on 2004-11-25 03:24:58:

    1. closedate changed to: "2004-11-24T20:24:58"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      On reading the code, it appears that the lack of
      FD_SET/FD_ISSET is
      a misguided attempt at performance enhancement, when the select
      masks from the subthreads are OR-ed together to form the select
      mask of the Notifier thread.  While the FD_* code is ugly,
      it looks to
      be The Right Thing moving forward, at least until poll() is
      ubiquitous
      (or we introduce a compat/ version of it).  The HEAD and the
      tip of
      the 8.4 branch now use the FD_* macros.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "kennykb"