Clint Adams, le Sun 11 Sep 2011 17:57:32 +0000, a écrit :
> On Sun, Sep 11, 2011 at 02:30:29PM +0200, Thomas Schwinge wrote:
> > +  while (1) {
> > +    if (connect(comm_sd, get_addr(), sizeof (struct sockaddr_in)) < 0) {
> > +      if (errno != EINTR)
> > +        fail("connect");
> > +    } else
> > +      break;
> > +  }
> 
> I'm concerned about the possibility for an infinite loop here if faked dies.

If faked dies, the error will be ECONNREFUSED, not EINTR.

Samuel



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to