Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fe99133ff0273ca39cc961d88ec128df8776da96
Ticket: 1071807fffffffffffffffffffffffffffffffff
select() loop notifys wrong fd's
User & Date: eyekode on 2004-11-23 15:42:01
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.4.8"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "eyekode"
  9. subsystem changed to: "01. Notifier"
  10. title changed to: "select() loop notifys wrong fd's"
  11. type changed to: "Bug"