mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-09 05:19:32 +08:00
Fix potential subprocess hang by discarding stderr pipe
This commit is contained in:
committed by
Peter Steinberger
parent
c3a8a5374f
commit
efb93d18cf
@@ -222,9 +222,9 @@ enum WideAreaGatewayDiscovery {
|
||||
process.executableURL = URL(fileURLWithPath: path)
|
||||
process.arguments = args
|
||||
let outPipe = Pipe()
|
||||
let errPipe = Pipe()
|
||||
process.standardOutput = outPipe
|
||||
process.standardError = errPipe
|
||||
process.standardError = FileHandle.nullDevice
|
||||
|
||||
|
||||
do {
|
||||
try process.run()
|
||||
|
||||
Reference in New Issue
Block a user