Skip to content

Commit

Permalink
Don't kill processes
Browse files Browse the repository at this point in the history
#927

Sending `kill` to a Dolphin process won't run termination blocks. I've seen cases where the Dolphin UI event handler seems to get stuck after killing a process looping over the events. Sending `terminate` instead which seems to alleviate the problem.
  • Loading branch information
Eric Winger authored and Eric Winger committed Oct 12, 2022
1 parent 7765c41 commit 0eae33c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sources/JadeDebugger.cls
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ reportError: gsError
(debugger := self debuggerFor: gsError processOop) notNil
ifTrue:
[debugger getProcessList; update.
Processor activeProcess kill.
Processor activeProcess terminate.
self error: 'We should never get here!!'].
(#(2709 6005) includes: gsError errorReport number)
ifTrue: [^self openDebuggerOnException: gsError].
Expand Down
2 changes: 1 addition & 1 deletion sources/JadePresenter.cls
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ waitForAnswer: thingThatCanAnswer
[loop isAlive] whileTrue:
[thingThatCanAnswer isDeafObject
ifTrue:
[loop kill. "uncerimoneously kill the loop - don't run ensure blocks"
[loop terminate. "uncerimoneously kill the loop - don't run ensure blocks"
^nil].
(Delay forMilliseconds: 1) wait]].
theAnswer := [deferredValue value] on: Error
Expand Down

0 comments on commit 0eae33c

Please sign in to comment.