sleep()

ka at spanky.UUCP ka at spanky.UUCP
Sun Jul 10 16:28:14 AEST 1983


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



More information about the Comp.unix.wizards mailing list