+catchInDebugger
authorca
Wed, 07 Nov 2007 11:37:02 +0100
changeset 10776 27ebdc435f1f
parent 10775 6fd2156c692d
child 10777 fcdf87d883f7
+catchInDebugger
Signal.st
--- a/Signal.st	Tue Nov 06 00:47:14 2007 +0100
+++ b/Signal.st	Wed Nov 07 11:37:02 2007 +0100
@@ -9,7 +9,6 @@
  other person.  No title to or ownership of the software is
  hereby transferred.
 "
-
 "{ Package: 'stx:libbasic' }"
 
 Object subclass:#Signal
@@ -381,6 +380,16 @@
     "Modified: / 22.3.1999 / 12:45:42 / stefan"
 !
 
+catchInDebugger
+    "if set, the debugger will handle this signal in its event loop and will close itself
+     without asking for close-confirmation.
+     This allows for debugged processes to be terminated without a user confirmation dialog
+     (for now, this is used in expecco's hard-terminate function to shut down any open debuggers
+      together with the test-process)"
+
+    ^ false
+!
+
 exceptionHandlerFor:anException in:aContext
     "answer the exceptionHandler for anException from aContext."
 
@@ -958,5 +967,5 @@
 !Signal class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Signal.st,v 1.102 2006-03-14 12:54:25 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Signal.st,v 1.103 2007-11-07 10:37:02 ca Exp $'
 ! !