From owner-freebsd-arch Mon Feb 5 17:16:38 2001 Delivered-To: freebsd-arch@freebsd.org Received: from molly.straylight.com (molly.straylight.com [209.68.199.242]) by hub.freebsd.org (Postfix) with ESMTP id 6E04F37B6A2; Mon, 5 Feb 2001 17:16:20 -0800 (PST) Received: from dickie (case.straylight.com [209.68.199.244]) by molly.straylight.com (8.11.0/8.10.0) with SMTP id f161GDX19005; Mon, 5 Feb 2001 17:16:13 -0800 From: "Jonathan Graehl" To: "Alfred Perlstein" Cc: , "Jonathan Lemon" Subject: RE: nonblocking sockets and EINTR (kevent does not observe SA_RESTART?) Date: Mon, 5 Feb 2001 17:16:56 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <20010205154842.J26076@fw.wintelcom.net> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > You can specify that syscalls will or won't be automatically > restarted via the sigaction() API. > > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] Thank you for reminding me of this (and making me feel like my question could have been better directed at -questions, if it is so trivially answered ;) I am using sigaction with SA_RESTART, and I still get EINTR from my kevent call (no matter, this is easily dealt with, due to the straightforward kevent semantics). I assume that SA_RESTART then only applies to the traditional syscalls (read/write,send/recv), and that this may be an oversight in the kqueue implementation, at least meriting a warning in the man page (I also assume that it is not possible to get EINTR for a datagram read/write, since there is no message handle used in sendto/recvfrom) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message