checkEvents/select in 0.8.1

Frank Mehnert Frank.Mehnert at mchp.siemens.de
Mon Feb 24 01:17:46 PST 1997


Hi,

in Rel. 0.8.1 the function checkEvents(void) calls select:

    ...
    FD_COPY(&readsPending, &rd);
    FD_COPY(&writesPending, &wr);
    ...
    r = (*select_call)(maxFd+1, &rd, &wr, 0, 0);
    ...

But readsPending and writesPending ar'nt initialized:

    static fd_set readsPending;
    static fd_set writesPending;


should'nt there be lines such as

    FD_ZERO(&readsPending);
    FD_ZERO(&writesPending);

???

Frank

Frank Mehnert
email: Frank.Mehnert at mchp.siemens.de



More information about the kaffe mailing list