diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2007-12-07 22:08:59 +0100 |
---|---|---|
committer | Johannes Sixt <johannes.sixt@telecom.at> | 2008-06-23 13:40:31 +0200 |
commit | ba26f296f9ddc694fc42683132bc328dffd777ec (patch) | |
tree | 203758fc03abfaaa7f873ed12055d7d4187021df /compat/pread.c | |
parent | Windows: A pipe() replacement whose ends are not inherited to children. (diff) | |
download | tgif-ba26f296f9ddc694fc42683132bc328dffd777ec.tar.xz |
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>
Diffstat (limited to 'compat/pread.c')
0 files changed, 0 insertions, 0 deletions