[PATCH] Fix nanosleep

Thomas Pfaff tpfaff@gmx.net
Tue May 6 13:25:00 GMT 2003


While i am investigating some problems with threads and signals i have
found a bug in nanosleep where signal_arrived is unnecessary checked
twice. This will lead to problems if the event is reset between the two
checks. I can provide a testcase if someone is interested in details.
AFAICT this problem occurs only in multithreaded apps.

2002-05-06  Thomas Pfaff  <tpfaff@gmx.net>

	* signal.cc (nanosleep): Do not wait twice for signal arrival.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nanosleep.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030506/2e3144d3/attachment.ksh>


More information about the Cygwin-patches mailing list