#BUGFIX by stefan
class: OSProcess
changed: #startProcess
catch errors when terminateAction is executed in ProcessorScheduler
--- a/OSProcess.st Tue Sep 25 17:02:49 2018 +0200
+++ b/OSProcess.st Wed Sep 26 20:52:40 2018 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
"{ Package: 'stx:libbasic' }"
"{ NameSpace: Smalltalk }"
@@ -848,8 +846,11 @@
finishSema signal.
terminateActionBlock notNil ifTrue:[
- callingProcess isDead ifTrue:[
- terminateActionBlock valueWithOptionalArgument:status and:self.
+ callingProcess isDead ifTrue:[
+ Error catch:[
+ "don't bother ProcessorScheduler with errors from terminateActionBlock!!"
+ terminateActionBlock valueWithOptionalArgument:status and:self.
+ ].
] ifFalse:[
callingProcess
interruptWith:[
@@ -897,8 +898,8 @@
^ true.
- "Modified: / 24-05-2018 / 17:58:40 / Stefan Vogel"
"Modified: / 21-06-2018 / 19:01:38 / Claus Gittinger"
+ "Modified (format): / 26-09-2018 / 18:43:12 / Stefan Vogel"
! !
!OSProcess methodsFor:'terminating'!