Skip to content

Commit babff74

Browse files
committed
Merge with #23 and update recommended swift version
1 parent 7f4c079 commit babff74

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
main-snapshot-2025-04-12
1+
6.1.0

Sources/Subprocess/Configuration.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -871,11 +871,7 @@ internal struct CreatedPipe {
871871
}
872872

873873
internal init(closeWhenDone: Bool) throws {
874-
#if os(Windows)
875874
let pipe = try FileDescriptor.ssp_pipe()
876-
#else
877-
let pipe = try FileDescriptor.pipe()
878-
#endif
879875

880876
self.readFileDescriptor = .init(
881877
pipe.readEnd,

Sources/Subprocess/Platforms/Subprocess+Unix.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,13 @@ extension Configuration {
375375

376376
// MARK: - FileDescriptor extensions
377377
extension FileDescriptor {
378+
internal static func ssp_pipe() throws -> (
379+
readEnd: FileDescriptor,
380+
writeEnd: FileDescriptor
381+
) {
382+
try pipe()
383+
}
384+
378385
internal static func openDevNull(
379386
withAcessMode mode: FileDescriptor.AccessMode
380387
) throws -> FileDescriptor {

0 commit comments

Comments
 (0)