Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site spanky.UUCP
Path: utzoo!linus!security!genrad!mit-eddie!mit-vax!eagle!mhuxt!mhuxi!mhuxa!houxm!hocda!spanky!ka
From: ka@spanky.UUCP
Newsgroups: net.unix-wizards
Subject: Re: sleep()
Message-ID: <410@spanky.UUCP>
Date: Sun, 10-Jul-83 02:28:14 EDT
Article-I.D.: spanky.410
Posted: Sun Jul 10 02:28:14 1983
Date-Received: Mon, 11-Jul-83 01:24:03 EDT
References: <460@umcp-cs.UUCP>
Organization: Bell Labs, Holmdel, N. J.
Lines: 7

The problem with implementing sleep by setting a flag when the alarm
signal is received and testing for this flag in a loop around the call
to pause() is that the alarm signal may come in between the time the
flag is checked and pause is called.  This may be an improbable occurance,
but I have seen it happen with a version of sleep that works exactly as
Chris proposes.
				Kenneth Almquist