Subject: Re: bug#23206: 25.0.92; dired-shell-stuff-it: wait until all parallel jobs finish

From: Eli Zaretskii <[email-masked]>
Date: Sun, 03 Apr 2016 18:03:52 +0300

> Date: Sun, 3 Apr 2016 22:02:17 +0900 (JST)
> From: Tino Calancha <[email-masked]>
> 
> When `dired-do-shell-command' runs COMMAND over FILES in
> parallel, the `shell-command' process may finish before all the
> files have being processed.
> 
> emacs -Q ~
> 
> * / & du SPC -s RET
> ; If the number of lines in #<buffer *Async Shell Command*> is less
> ; than (1+ (length (dired-get-marked-files))) then NOT all files
> ; has being processed.
> 
> Attached patch fix this issue adding 'wait' at the end of COMMAND
> when FILES are procesed in parallel.

Thanks.  Can you elaborate on why such a wait is needed?