Skip to content

Commit 999cbc8

Browse files
authored
Merge pull request #2267 from compnerd/dead-pipes-tell-no-secrets
Foundation: fix `Process.run()` handle handling for Windows
2 parents f4be1a8 + 4275315 commit 999cbc8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Foundation/Process.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,15 +519,12 @@ open class Process: NSObject {
519519

520520
if let pipe = standardInput as? Pipe {
521521
pipe.fileHandleForReading.closeFile()
522-
pipe.fileHandleForWriting.closeFile()
523522
}
524523
if let pipe = standardOutput as? Pipe {
525-
pipe.fileHandleForReading.closeFile()
526524
pipe.fileHandleForWriting.closeFile()
527525
}
528526
if let pipe = standardError as? Pipe {
529527
pipe.fileHandleForWriting.closeFile()
530-
pipe.fileHandleForReading.closeFile()
531528
}
532529

533530
self.runLoop = RunLoop.current

0 commit comments

Comments
 (0)