Skip to content

Commit 7ff2cae

Browse files
committed
Go back to always locking after debugging issues
1 parent 0e77a24 commit 7ff2cae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/CoreCommands/SwiftTool.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@ extension SwiftCommand {
105105
public static var _errorLabel: String { "error" }
106106

107107
private func acquireScratchDirectoryLockIfNeeded<T>(swiftTool: SwiftTool, blocking: Bool = true, _ body: () throws -> T) throws {
108-
let interactive = isatty(STDOUT_FILENO) == 1
109108
_ = try swiftTool.fileSystem.withLock(
110109
on: swiftTool.scratchDirectory,
111110
type: .exclusive,
112-
blocking: interactive ? blocking : false,
111+
blocking: blocking,
113112
body
114113
)
115114
}

0 commit comments

Comments
 (0)