Thread (18 messages) 18 messages, 3 authors, 2016-06-15

Re: [PATCH 6/8] run-command: add an asynchronous parallel child processor

From: Stefan Beller <hidden>
Date: 2016-06-15 23:07:27

On Mon, Dec 14, 2015 at 12:39 PM, Johannes Sixt [off-list ref] wrote:
I can't quite parse the first sentence in this paragraph. Perhaps something
like this:

To detect when a child has finished executing, we check interleaved
with other actions (such as checking the liveliness of children or
starting new processes) whether the stderr pipe still exists. Once a
child closed its stderr stream, we assume it is terminating very soon,
and use finish_command() from the single external process execution
interface to collect the exit status.
Sounds much better than my words. If a resend is necessary, I'll have your
reworded version of the paragraph instead.
quoted
By maintaining the strong assumption of stderr being open until the
very end of a child process, we can avoid other hassle such as an
implementation using `waitpid(-1)`, which is not implemented in Windows.

Signed-off-by: Stefan Beller <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help