From owner-cvs-lib Sun May 18 02:05:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA21324 for cvs-lib-outgoing; Sun, 18 May 1997 02:05:29 -0700 (PDT) Received: from nagual.pp.ru (ache.relcom.ru [194.58.229.133]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA21308; Sun, 18 May 1997 02:05:06 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.8.5/8.8.5) id NAA01221; Sun, 18 May 1997 13:04:51 +0400 (MSD) Date: Sun, 18 May 1997 13:04:48 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: Peter Wemm cc: Bruce Evans , peter@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen sleep.c In-Reply-To: <199705180751.PAA05367@spinner.DIALix.COM> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 18 May 1997, Peter Wemm wrote: > My current version is compatable with this, *except* that it doesn't seem > convenient to mask SIGALRM while preparing to call nanosleep(). Doing a > longjump out of the signal handler seems like overkill... > > I'm using this at present: Good news, this variant works with Apache, lets commit it. BTW, I see race condition when SIGALRM comes inside sleep() code before nanosleep() call. It can be blocked before, but how to unblock it inside nanosleep()? -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/