On Tue, 5 Oct 2004 09:11:58 +0100 (BST), Philip Hazel
<ph10@???> wrote: > On Tue, 5 Oct 2004, Alex Kiernan wrote:
>
> > Is it worth adding a check in milliwait() that setitimer() succeeds
> > before going into sigsuspend()?
>
> And what do you do if it fails?
Personally, I'd panic. At least a diagnostic, so we could usefully trap on it.
> You could perhaps obey sleep(n) as an
> emergency fixup, where n is the time rounded up to the nearest second.
>
> Advantage: apart from a too-long delay, everything works.
Too long as in infinite - the timer's not set, the alarm never goes
off, you wait forever.