Fix potential subprocess hang by discarding stderr pipe

main
abhijeet117 2026-01-28 17:11:21 +05:30 committed by Peter Steinberger
parent c3a8a5374f
commit efb93d18cf
1 changed files with 2 additions and 2 deletions

View File

@ -222,9 +222,9 @@ enum WideAreaGatewayDiscovery {
process.executableURL = URL(fileURLWithPath: path) process.executableURL = URL(fileURLWithPath: path)
process.arguments = args process.arguments = args
let outPipe = Pipe() let outPipe = Pipe()
let errPipe = Pipe()
process.standardOutput = outPipe process.standardOutput = outPipe
process.standardError = errPipe process.standardError = FileHandle.nullDevice
do { do {
try process.run() try process.run()