File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Packages/Shell/Sources/ShellData Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,12 @@ public struct ProcessShell: Shell {
18
18
process. launchPath = executablePath
19
19
process. standardInput = nil
20
20
process. environment = environment
21
- process. launch ( )
21
+ process. run ( )
22
22
let data = pipe. fileHandleForReading. readDataToEndOfFile ( )
23
+ // Explicitly close the pipe file handle to prevent running
24
+ // out of file descriptors.
25
+ // See https://github.com/swiftlang/swift/issues/57827
26
+ try ! pipe. fileHandleForReading. close ( )
23
27
process. waitUntilExit ( )
24
28
guard process. terminationStatus == 0 else {
25
29
throw ProcessShellError . unexpectedTerminationStatus ( process. terminationStatus)
Original file line number Diff line number Diff line change 1
1
GENERATE_INFOPLIST_FILE = YES
2
2
CURRENT_PROJECT_VERSION = 1
3
- MARKETING_VERSION = 0.9.0
3
+ MARKETING_VERSION = 0.10.1
4
4
DEVELOPMENT_TEAM = 566MC7D8D4
5
5
CODE_SIGN_STYLE = Automatic
6
6
CODE_SIGN_ENTITLEMENTS = Tartelet/Supporting files/Tartelet.entitlements
You can’t perform that action at this time.
0 commit comments