patch: sleep/nanosleep bug

Eric Blake ebb9@byu.net
Wed Nov 25 13:11:00 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 11/20/2009 7:15 AM:
>>> 	* signal.cc (nanosleep): Support 'infinite' sleep times.
>>> 	(sleep): Avoid uninitialized memory.
>> Sorry but, while I agree with the basic idea, this seems like
>> unnecessary use of recursion.  It seems like you could accomplish the
>> same thing by just putting the cancelable_wait in a for loop.  I think
>> adding recursion here obfuscates the function unnecesarily.
> 
> How about the following, then?  Same changelog.

Ping.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksNLOUACgkQ84KuGfSFAYDjkACfSUKXFSAi2jMS2GNAAqDhfpbT
NRUAoMkRUmS/WGUU45Z6OgCNbgXiocYe
=ttYg
-----END PGP SIGNATURE-----



More information about the Cygwin-patches mailing list