#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Tue, 01 Aug 2017 17:45:36 +0200
changeset 22148 9f3d3f09551d
parent 22147 998484c2c1a3
child 22149 35844a157ae2
#BUGFIX by stefan class: OSProcess changed: #waitUntilFinished https://expeccoalm.exept.de/D207229 Fix bug where Processor>>checkForEndOfDispatch did not recognize the waiting process and the system terminated prematurely.
OSProcess.st
--- a/OSProcess.st	Tue Aug 01 17:43:45 2017 +0200
+++ b/OSProcess.st	Tue Aug 01 17:45:36 2017 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "{ Package: 'stx:libbasic' }"
 
 "{ NameSpace: Smalltalk }"
@@ -604,7 +606,16 @@
 !OSProcess methodsFor:'waiting'!
 
 waitUntilFinished
-    ^ self waitUntilFinishedWithTimeout:nil
+
+    "wait with a veryy long timeout, 
+     in order that ProcessorScheduler>>#checkForEndOfDispatch recogizes
+     this waiting process as user process which is still alive.
+     The timout is meant to never occur!!"
+
+    ^ self waitUntilFinishedWithTimeout:60*60*24000
+
+    "Modified: / 01-08-2017 / 14:41:10 / stefan"
+    "Modified (comment): / 01-08-2017 / 17:15:55 / stefan"
 !
 
 waitUntilFinishedWithTimeout:timeout