interrupted sleep returns wrong value

Egor Duda
Fri Sep 15 12:27:00 GMT 2000


  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.

Egor.   ICQ 5165414 FidoNet 2:5020/496.19

-------------- next part --------------
2000-09-15  Egor Duda  <>

	* (sleep): If interrupted by signal, return the
	requested time minus the time actually slept.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interrupted-sleep-ret-val.diff
Type: text/x-diff
Size: 964 bytes
Desc: not available
URL: <>

More information about the Cygwin-patches mailing list