From owner-freebsd-hackers Tue Dec 19 10:17:40 2000 From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 19 10:17:38 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id E8A9537B400 for ; Tue, 19 Dec 2000 10:17:37 -0800 (PST) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id NAA12062; Tue, 19 Dec 2000 13:15:51 -0500 (EST) Date: Tue, 19 Dec 2000 13:15:50 -0500 (EST) From: Daniel Eischen To: David Malone Cc: Alfred Perlstein , Dmitry Dicky , freebsd-hackers@FreeBSD.ORG Subject: Re: recvfrom() and signals In-Reply-To: <20001219175732.A7496@lanczos.maths.tcd.ie> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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