SwiftCommand icon indicating copy to clipboard operation
SwiftCommand copied to clipboard

Possible deadlock problem

Open dabrahams opened this issue 5 months ago • 1 comments

I learned recently if you waitUntilExit without first draining the standard output and error streams the system can deadlock, because it refuses to allow more data to be streamed out of the child process when its output buffers become full. I don't see any code for handling that situation here. Here's an example of how it's done.

dabrahams avatar Nov 04 '25 15:11 dabrahams