#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Tue, 01 May 2018 10:40:13 +0200
changeset 4642 695b02c145a9
parent 4641 561fd5fdf03c
child 4643 b01920109e34
#FEATURE by cg class: TerminalSession changed: #startReaderProcess #stopReaderProcess
TerminalSession.st
--- a/TerminalSession.st	Mon Apr 30 21:53:32 2018 +0200
+++ b/TerminalSession.st	Tue May 01 10:40:13 2018 +0200
@@ -830,7 +830,11 @@
             [
                 self readerProcessLoop.
             ] ifCurtailed:[
-                readerProcess := nil    
+                "/ read any remaining data
+                (self readAnyAvailableData > 0) ifTrue:[
+                    self halt:'to check if this solves the make problem'.
+                ].
+                readerProcess := nil.   
             ]
         ] fork. "/ forkAt:9.
         readerProcess name:'pty reader'.
@@ -855,9 +859,8 @@
         p terminate.
         "/ give it a chance to really terminate
         Processor yield.
-        "/ read any remaining data
-        (self readAnyAvailableData > 0) ifTrue:[
-            self halt:'to check if this solves the make problem'.
+        [p isDead] whileFalse:[
+            Delay waitForSeconds:0.05
         ].
     ].
 ! !