1
0
mirror of https://github.com/git/git.git synced 2025-03-20 13:39:40 +00:00
git/compat
Johannes Sixt ba26f296f9 Windows: Implement start_command().
On Windows, we have spawnv() variants to run a child process instead of
fork()/exec(). In order to attach pipe ends to stdin, stdout, and stderr,
we have to use this idiom:

    save1 = dup(1);
    dup2(pipe[1], 1);
    spawnv();
    dup2(save1, 1);
    close(pipe[1]);

assuming that the descriptors created by pipe() are not inheritable.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
2008-06-23 13:40:31 +02:00
..
2007-09-06 22:46:00 -07:00
2008-06-23 13:40:31 +02:00
2008-06-23 13:40:31 +02:00
2007-06-07 00:04:01 -07:00
2008-06-22 11:32:45 +02:00