-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In TaskPipelineManager, a new kTaskPipelineStatusTerminating status c…
…ode was added between the kTaskPipelineStatusRunning and kTaskPipelineStatusTerminated phases. In TaskPipelineManager terminateTasks, the @synchronized directive was used in a critical section of code, and the result of NSTask isRunning is checked before sending the terminate message. This should avoid some crashes that occurred when terminate was sent to an NSTask that had already terminated. Also, the NSTask terminate section of code is now enclosed in a @try/@catch block to avoid app crashes.
- Loading branch information
dsward2
authored and
dsward2
committed
Dec 29, 2017
1 parent
d704152
commit 2b4b6e0
Showing
3 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters