Smalltalk.st
changeset 20758 212ca877b8af
parent 20757 b41faaeaf46e
child 20759 cf0febc47067
--- a/Smalltalk.st	Thu Nov 03 19:22:42 2016 +0100
+++ b/Smalltalk.st	Thu Nov 03 20:11:22 2016 +0100
@@ -4433,6 +4433,7 @@
                     
                     "/ after the script, if Screen has been opened and there are any open windows,
                     "/ then do not exit
+false ifTrue:[
                     Display notNil ifTrue:[
                         Processor exitWhenNoMoreUserProcesses:true.
                         "/ Display exitOnLastClose:true.
@@ -4440,12 +4441,14 @@
                     ] ifFalse:[
                         self exit.
                     ].
+].
                 ] newProcess.
                 process priority:(Processor userSchedulingPriority).
                 process name:'main'.
                 process beGroupLeader.
                 process resume.
 
+Processor exitWhenNoMoreUserProcesses:true.
                 Processor dispatchLoop.
                 self exit
             ].
@@ -4598,6 +4601,7 @@
                     
                     "/ after the script, if Screen has been opened and there are any open windows,
                     "/ then do not exit
+false ifTrue:[
                     Display notNil ifTrue:[
                         Processor exitWhenNoMoreUserProcesses:true.
                         "/ Display exitOnLastClose:true.
@@ -4611,12 +4615,14 @@
                         ].
                         self exit.
                     ].
+].
                 ] newProcess.
                 process priority:(Processor userSchedulingPriority).
                 process name:'main'.
                 process beGroupLeader.
                 process resume.
 
+Processor exitWhenNoMoreUserProcesses:true.
                 Processor dispatchLoop.
                 VerboseStartup == true ifTrue:[
                     ('Smalltalk [info]: exit normally.') infoPrintCR.