tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: alarm(3) bug?

On Wed, 24 Oct 2012 09:15:50 +0200
Alan Barrett <> wrote:

> On Tue, 23 Oct 2012, enh wrote:
> > the user-observable difference between glibc/POSIX and NetBSD is 
> > for alarm(0xffffffff).
> 0xffffffff seconds is about 136 years.  I suggest that 
> you avoid trying to pass such long timeouts to the 
> alarm function.

As an aside, if you genuinely need your process to run for 136 years
you may also run into portability issues regarding the size of time_t.

3072D/F3A66B3A Julian Yon (2012 General Use) <>

Attachment: signature.asc
Description: PGP signature

Home | Main Index | Thread Index | Old Index