From e35f1d1655d0bf584d8698af2f0303cc87114261 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 9 Dec 2011 06:49:10 +0000 Subject: * sigproc.cc (signal_exit): Revert reversion of 2011-12-04 change since, otherwise, you see hangs when the signal pipe is closed. --- winsup/cygwin/debug.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/debug.cc') diff --git a/winsup/cygwin/debug.cc b/winsup/cygwin/debug.cc index 6613dd99c..428bd052a 100644 --- a/winsup/cygwin/debug.cc +++ b/winsup/cygwin/debug.cc @@ -221,9 +221,12 @@ close_handle (const char *func, int ln, HANDLE h, const char *name, bool force) lock_debug here; if (!mark_closed (func, ln, h, name, force)) return false; +debug_printf ("here 1"); SetHandleInformation (h, HANDLE_FLAG_PROTECT_FROM_CLOSE, 0); +debug_printf ("here 2"); ret = CloseHandle (h); +debug_printf ("here 3, ret %d", ret); if (!ret) { -- cgit v1.2.3