nanosleep - does it make sense with tv_sec < 0?

2010-07-28 Thread Garrett Cooper
Hi Hackers, I ran into an oddity with the POSIX spec that seems a bit unrealistic: [EINVAL] The rqtp argument specified a nanosecond value less than zero or greater than or equal to 1000 million. Seems like it should also apply for seconds < 0. We current silently pass this argument i

Re: nanosleep - does it make sense with tv_sec < 0?

2010-08-02 Thread Garrett Cooper
On Wed, Jul 28, 2010 at 11:01 PM, Garrett Cooper wrote: > Hi Hackers, >    I ran into an oddity with the POSIX spec that seems a bit unrealistic: > > [EINVAL] >    The rqtp argument specified a nanosecond value less than zero or > greater than or equal to 1000 million. > >    Seems like it should