weird egcs bug
Greg Bacon
gbacon@itsc.uah.edu
Thu Mar 16 13:29:00 GMT 2000
In message < oru2i6fxij.fsf@garnize.lsd.ic.unicamp.br >,
Alexandre Oliva writes:
: On Mar 15, 2000, gbacon@itsc.uah.edu (Greg Bacon) wrote:
:
: > maxfd = fd1 > fd2 ? fd1 : fd2;
: > maxfd++;
: [snip]
: > retval = select(maxfd+1, &rdrs, NULL, NULL, NULL);
:
: Isn't it wrong that maxfd is both incremented and added 1?
Well, yes, but that shouldn't cause select() to hang, should it?
Greg
More information about the Gcc-bugs
mailing list