We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac17479 + b07ad92 commit 8893f51Copy full SHA for 8893f51
Sources/Foundation/Process.swift
@@ -830,6 +830,9 @@ open class Process: NSObject {
830
process._terminationReason = .exit
831
}
832
833
+ // Set the running flag to false
834
+ process.isRunning = false
835
+
836
// If a termination handler has been set, invoke it on a background thread
837
838
if let terminationHandler = process.terminationHandler {
@@ -839,9 +842,6 @@ open class Process: NSObject {
839
842
thread.start()
840
843
841
844
- // Set the running flag to false
- process.isRunning = false
-
845
// Invalidate the source and wake up the run loop, if it's available
846
847
CFRunLoopSourceInvalidate(process.runLoopSource)
0 commit comments