[Issue 2373] New: freebsd select does not accept values > 999,999

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 24 22:17:11 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2373

           Summary: freebsd select does not accept values  > 999,999
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: alan at akbkhome.com


Fix for std.socket

static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet
checkError, int microseconds)
        {
                timeval tv;
                tv.seconds = microseconds > 1000000 ? (microseconds/1000000) :
0;
                tv.microseconds = microseconds % 1000000;
                return select(checkRead, checkWrite, checkError, &tv);
        }


-- 



More information about the Digitalmars-d-bugs mailing list