[PATCH] fix signal event handling for cygwin event loop