This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: weird egcs bug
- To: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Subject: Re: weird egcs bug
- From: Greg Bacon <gbacon at itsc dot uah dot edu>
- Date: Thu, 16 Mar 2000 15:37:16 -0600
- cc: Greg Bacon <gbacon at cs dot uah dot edu>, egcs-bugs at egcs dot cygnus dot com
- Reply-To: gbacon at cs dot uah dot edu
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