From owner-freebsd-net Fri Jan 17 5:46: 2 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED99837B405 for ; Fri, 17 Jan 2003 05:45:59 -0800 (PST) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8067943EB2 for ; Fri, 17 Jan 2003 05:45:58 -0800 (PST) (envelope-from pete@he.iki.fi) Received: from PHE (silver.he.iki.fi [193.64.42.241]) by silver.he.iki.fi (8.12.6/8.11.4) with SMTP id h0HDjtFc039447 for ; Fri, 17 Jan 2003 15:45:56 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <02e401c2be2e$c298c4c0$822a40c1@PHE> From: "Petri Helenius" To: Subject: connect and EINTR Date: Fri, 17 Jan 2003 15:45:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is 4.7-STABLE built on 15 Jan. I have a nonblocking socket where connect is called. Due to timers also running in the same process, that eventually returns EINTR. However it seems that the socket is connected regardless since calling connect again will return EISCONN. This seems to be the "posix behaviour" and thus it might be that only the manpage is incomplete. Quote below: (which is missing from FreeBSD manpage) [EINTR] The attempt to establish a connection was interrupted by delivery of a signal that was caught; the connection will be established asynchronously. Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message