From owner-freebsd-arch Thu Jan 24 2:15:46 2002 Delivered-To: freebsd-arch@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id F345037B402 for ; Thu, 24 Jan 2002 02:15:34 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0OAEj423962; Thu, 24 Jan 2002 12:14:45 +0200 (EET) (envelope-from ru) Date: Thu, 24 Jan 2002 12:14:45 +0200 From: Ruslan Ermilov To: Terry Lambert Cc: Dag-Erling Smorgrav , arch@FreeBSD.ORG Subject: Re: Nit in wait(2) man page? Message-ID: <20020124121445.F16972@sunbay.com> References: <3C4FCE98.2C0BE57E@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C4FCE98.2C0BE57E@mindspring.com> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 24, 2002 at 01:06:32AM -0800, Terry Lambert wrote: > Dag-Erling Smorgrav wrote: > > The wait(2) man page says: > > > > [EINTR] The call was interrupted by a caught signal, or the > > signal did not have the SA_RESTART flag set. > > > > Should this be s/or/and/? > > Yes. Interrupted system calls do not return error codes if > the restart flag is set, they are restarted, instead. > I'd suggest that you just drop that ", or" part, like any other interruptable syscalls manpages do (see siginterrupt(3)). > I think you may need to be careful here, though, based on > the interaction with threads. I'm not sure how the wrapped > system calls find themselves restarted, if they are > interrupted by a signal handler. In tehory, this should be > transparent, but in practice, there is a heck of a lot of > voodoo in the wrapper code to deal with masks and stuff, > mostly to deal with the fact that system call restart is no > longer the default behaviour, thanks to POSIX. > POSIX has: [EINTR] The function was interrupted by a signal. [siginterrupt(3) historical material snipped] Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message