We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39d7157 commit 28316c7Copy full SHA for 28316c7
Sources/Foundation/Process.swift
@@ -226,9 +226,9 @@ private func quoteWindowsCommandLine(_ commandLine: [String]) -> String {
226
#endif
227
228
open class Process: NSObject, @unchecked Sendable {
229
+ static let once = Mutex(false)
230
+
231
private static func setup() {
- let once = Mutex(false)
-
232
once.withLock {
233
if !$0 {
234
let thread = Thread {
0 commit comments