This is the mail archive of the
cygwin-patches@sources.redhat.com
mailing list for the Cygwin project.
Re: interrupted sleep returns wrong value
- To: cygwin-patches at sourceware dot cygnus dot com
- Subject: Re: interrupted sleep returns wrong value
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Fri, 15 Sep 2000 16:27:37 -0400
- References: <37298513830.20000915232401@logos-m.ru>
- Reply-To: cygwin-patches at sources dot redhat dot com
On Fri, Sep 15, 2000 at 11:24:01PM +0400, Egor Duda wrote:
>Hi!
>
> SUSv2 says:
>
> If sleep() returns because the requested time has elapsed, the value
> returned will be 0. If sleep() returns because of premature arousal due to
> delivery of a signal, the return value will be the "unslept" amount (the
> requested time minus the time actually slept) in seconds.
>
>attached patch accomplish this.
This looks good. Please check it in.
cgf