refactor(macos): centralize process pipe draining

This commit is contained in:
Peter Steinberger
2026-01-17 08:53:03 +00:00
parent 1002c74d9c
commit 869ef0c5ba
7 changed files with 20 additions and 24 deletions

View File

@@ -580,11 +580,10 @@ final class NodePairingApprovalPrompter {
process.standardError = pipe
do {
try process.run()
_ = try process.runAndReadToEnd(from: pipe)
} catch {
return false
}
process.waitUntilExit()
return process.terminationStatus == 0
}.value
}