Hi! On Sun, 11 Sep 2011 17:57:32 +0000, Clint Adams <cl...@debian.org> wrote: > 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.
How so? If errno != EINTR it'll fail() (as it did before) -- like in a bunch of other cases in that file. The while (1) loop is just for keeing trying in case of errno == EINTR. Grüße, Thomas
pgpzpyvYmhrf4.pgp
Description: PGP signature