This is the mail archive of the cygwin-patches@cygwin.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]
Other format: [Raw text]

[PATCH] Fix nanosleep


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.

Attachment: nanosleep.patch
Description: Text document


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