• Daniel Kochmański's avatar
    run-program: fix loop in pipe-stream · 3fd005d8
    Daniel Kochmański authored
    When we have called something like this
        (ext:run-program "true" nil :wait nil :output *standard-output*)
    pipe-stream were running in a loop until someone has called
    external-process-wait (or external-process-status). This was a hogging the
    processor without a reason. Right now unless some other wait is already called
    checks for the process status (and magically removes zombies).
    Also always call sleep (not thread-yield), because this loop eats a lot of cpu
process.lsp 11.9 KB