This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: sleep (UINT_MAX) broken
- From: Petter Reinholdtsen <pere at hungry dot com>
- To: libc-alpha at sources dot redhat dot com
- Cc: Michael Matz <matz at suse dot de>, Andreas Jaeger <aj at suse dot de>
- Date: 28 Jun 2003 18:20:36 +0200
- Subject: Re: sleep (UINT_MAX) broken
- References: <u8fzlu5m95.fsf@gromit.moeb>
- Reply-by: Tue, 1 Jan 1801 04:37:40 +1000
[Andreas Jaeger]
> This small program returns directly with:
> gromit:~/tmp:[0]$ ./a.out
> Ret is :4294967295
The same happen on HP/UX 11.22 The manual page for sleep(3) on HP/UX
says that 'seconds must be less than 2^31'.
Solaris 8 behaves differently. It returns immediately with ret = 0:
% ./a.out
Ret is :0
%
Looking at
<URL:http://www.opengroup.org/onlinepubs/007904975/functions/sleep.html>,
it is hard to tell if this is supposed to work or not. I guess it
should.