From owner-freebsd-audit Thu Jun 6 3:36:48 2002 Delivered-To: freebsd-audit@freebsd.org Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by hub.freebsd.org (Postfix) with ESMTP id E5D6937B401; Thu, 6 Jun 2002 03:36:44 -0700 (PDT) Received: from fwd09.sul.t-online.de by mailout01.sul.t-online.com with smtp id 17FudF-0002Ma-07; Thu, 06 Jun 2002 12:36:41 +0200 Received: from Magelan.Leidinger.net (520065502893-0001@[217.229.220.203]) by fmrl09.sul.t-online.com with esmtp id 17Fud4-0DaXqqC; Thu, 6 Jun 2002 12:36:30 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.3/8.12.3) with ESMTP id g56AbviS000861; Thu, 6 Jun 2002 12:38:01 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200206061038.g56AbviS000861@Magelan.Leidinger.net> Date: Thu, 6 Jun 2002 12:37:57 +0200 (CEST) From: Alexander Leidinger Subject: Re: [PATCH] making dump EINTR resistant To: bde@zeta.org.au Cc: netchild@FreeBSD.ORG, audit@FreeBSD.ORG, bhlewis@wossname.net In-Reply-To: <20020606063157.V8685-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 6 Jun, Bruce Evans wrote: >> Stevens lists only ioctl, read, readv, write, writev, wait and waitpid, >> but not open, fopen, close and fclose. What about those? > > Stevens is correct, but in practice open() and close() often ignores signals > while it is in the kernel, so signal delivery occurs when the process is > about to leave the kernel and doesn't result in the syscall returning > EINTR. I think this (no EINTR) happens for regular files and disk devices. > It doesn't happen for slow devices like terminals, and shouldn't happen if > the syscall can block (then the device driver must support the syscall > being aborted by a signal). So why produced dump a EINTR error for me on 4.x and for Benjamin on -current? Bye, Alexander. -- "One world, one web, one program" -- Microsoft promotional ad "Ein Volk, ein Reich, ein Fuehrer" -- Adolf Hitler http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message