OSDN Git Service

* exceptions.cc (ctrl_c_handler): Remove this thread from the signal handler
authorcgf <cgf>
Sun, 14 Dec 2003 16:55:24 +0000 (16:55 +0000)
committercgf <cgf>
Sun, 14 Dec 2003 16:55:24 +0000 (16:55 +0000)
chain.

winsup/cygwin/ChangeLog
winsup/cygwin/exceptions.cc

index d2ada06..e4a8d34 100644 (file)
@@ -1,5 +1,10 @@
 2003-12-14  Christopher Faylor  <cgf@redhat.com>
 
+       * exceptions.cc (ctrl_c_handler): Remove this thread from the signal
+       handler chain.
+
+2003-12-14  Christopher Faylor  <cgf@redhat.com>
+
        * cygthread.cc (cygthread::stub): Revert previous change and again
        subsume cygthread::stub2.  Just return from function now since
        ExitThread is guaranteed by automatic _threadinfo wrapper.  Define as
index a479519..29323ae 100644 (file)
@@ -899,6 +899,7 @@ static BOOL WINAPI
 ctrl_c_handler (DWORD type)
 {
   static bool saw_close;
+  _my_tls.remove ();
 
   /* Return FALSE to prevent an "End task" dialog box from appearing
      for each Cygwin process window that's open when the computer