Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 1997 13:29:06 +0400 (MSD)
From:      =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        peter@spinner.dialix.com, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, peter@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libc/gen sleep.c
Message-ID:  <Pine.BSF.3.96.970518131753.1299A-100000@nagual.pp.ru>
In-Reply-To: <199705180901.TAA31228@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 18 May 1997, Bruce Evans wrote:

> >Hmm.  Perhaps install a temporary dummy SIGALRM handler in the sleep.c stub
> >so that it doesn't die if there isn't one.  The old setitimer way doesn't
> >mess with alarm(2), using nanosleep() wont change that.
> 
> Why would a program generate alarms without installing an alarm handler?

They assume sleep() install one for them. It is commonly used way to
terminate sleep() in a child since not all sleep implementations
terminates by other signals. 

-- 
Andrey A. Chernov
<ache@null.net>
http://www.nagual.pp.ru/~ache/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970518131753.1299A-100000>