Re: [exim] Re: Exim 4.42 sleeping "forever"

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Alex Kiernan
Date:  
À: exim-users
Sujet: Re: [exim] Re: Exim 4.42 sleeping "forever"
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.

--
Alex Kiernan