On 18 Dec 2000, Erik Naggum wrote:
> * Raimondas Kiveris
> | I have to use run-shell-command in a multithreaded application.
> | Run-shell-command with :wait t apparently suspends all other
> | threads and if external process takes significant time to complete
> | the whole application practically hangs.
>
> Why do you need :wait t?
I do not absolutely need it, just a matter of convenience -- need to
know external process exit value before proceeding.
> If you cannot proceed until the child process
> has finished, it is better to use :wait nil and an :output :stream which
> you simply drain until it closes, which coincides with termination unless
> the process is doing really weird things. You may apply a timeout while
> "reading" from this stream in the normal way.
Exactly what I was looking for. Thanks!
rkv