This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: interrupted sleep returns wrong value


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]