connecting to non-responding hosts: 1 hr timeout (fwd)

Gert Doering gert at greenie.muc.de
Fri May 4 18:45:54 EST 2001


Hi,

On Thu, May 03, 2001 at 12:34:23PM -0500, Dave Dykstra wrote:
> The alarm signal does not interrupt connect() on Linux (2.2.18 at least).
> It does interrupt connect() with an EINTR error on Solaris though (2.7 at
> least).  I'm not sure about other systems.

You need to disable system call restarting with siginterrupt(),
otherwise it won't work.

(This was new in glibc 2).

gert

-- 
Gert Doering
Mobile communications ... right now writing from *@Bologna*
... mobile phone: +49 177 2160221 ... or mail me:  gert at greenie.muc.de



More information about the openssh-unix-dev mailing list