added ProcessScheduler>>processById:

attempting to correct signal handling behavior
This commit is contained in:
hyunghwan.chung
2019-08-18 17:46:40 +00:00
parent 071ebb7788
commit 42df4239a6
6 changed files with 156 additions and 32 deletions

View File

@ -183,7 +183,11 @@ extend Context
ctx basicAt: pending_pos put: false.
eb value.
}*/
if (ctx basicAt: pending_pos test: true put: false) { eb value }.
if (ctx basicAt: pending_pos test: true put: false)
{
// TODO: what is the best way to handle an exception raised in an ensure block?
[ eb value ] on: Exception do: [:ex | System logNl: "WARNING: unhandled exception in ensure block - " & ex messageText ].
}.
}.
stop := (ctx == context).
ctx := ctx sender.