• Avery Pennarun's avatar
    ui-macos/main.py: fix wait() to avoid deadlock. · 89e914e9
    Avery Pennarun authored
    If the subprocess was trying to write to its stdout/stderr, its process
    would never actually finish because it was blocked waiting for us to read
    it, but we were blocked on waitpid().  Instead, use waitpid(WNOHANG) and
    continually read from the subprocess (which should be a blocking operation)
    until it exits.
    89e914e9
main.py 12.5 KB