Date: Mon, 5 Feb 2001 17:16:56 -0800 From: "Jonathan Graehl" <jonathan@graehl.org> To: "Alfred Perlstein" <bright@wintelcom.net> Cc: <freebsd-arch@freebsd.org>, "Jonathan Lemon" <jlemon@freebsd.org> Subject: RE: nonblocking sockets and EINTR (kevent does not observe SA_RESTART?) Message-ID: <NCBBLOALCKKINBNNEDDLGEFPDKAA.jonathan@graehl.org> In-Reply-To: <20010205154842.J26076@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBLOALCKKINBNNEDDLGEFPDKAA.jonathan>