Date: Tue, 19 Dec 2000 13:15:50 -0500 (EST) From: Daniel Eischen <eischen@vigrid.com> To: David Malone <dwmalone@maths.tcd.ie> Cc: Alfred Perlstein <bright@wintelcom.net>, Dmitry Dicky <diwil@dataart.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: recvfrom() and signals Message-ID: <Pine.SUN.3.91.1001219131209.11408A-100000@pcnet1.pcnet.com> In-Reply-To: <20001219175732.A7496@lanczos.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 Dec 2000, David Malone wrote: > On Tue, Dec 19, 2000 at 09:45:05AM -0800, Alfred Perlstein wrote: > > > See the sigaction manpage and how one enable/disables system call > > restarts. > > He is setting the signal handler with signal(), which calls > sigaction() without the SA_RESTART flag set, so it seems that should > interrupt recvfrom(). Bzzt :-) Alfred's correct. Read the manpage for signal again. To Dmitry: Don't use antiquated signal. Use sigaction and don't set the SA_RESTART flag. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.1001219131209.11408A-100000>