[llvm-commits] [patch] win32 - fix deadlock on ctrl + c handler when sys::AddSignalHandler is invoked

Gianluigi Tiesi sherpya at netfarm.it
Tue Mar 30 14:07:32 PDT 2010


Hi,

signal handling on win32 has a problem,
the function sys::AddSignalHandler

calls RegisterHandler()

but then does not releases the critical section
as stated in the function.

So if the program calls the function and the user
press ctrl c, the program will not able to exit

Regards

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ctrl_c_handler.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100330/31d85b47/attachment.ksh>


More information about the llvm-commits mailing list