diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2007-11-24 22:49:16 +0100 |
---|---|---|
committer | Johannes Sixt <johannes.sixt@telecom.at> | 2008-06-26 08:45:10 +0200 |
commit | 7e5d776854e858ae69a4cde9db8de6675ffb5de6 (patch) | |
tree | 61bf14b4834fc26b869dc83c73dd509cfd43c14c /t/t1100-commit-tree-options.sh | |
parent | Windows: Implement wrappers for gethostbyname(), socket(), and connect(). (diff) | |
download | tgif-7e5d776854e858ae69a4cde9db8de6675ffb5de6.tar.xz |
Windows: Implement a custom spawnve().
The problem with Windows's own implementation is that it tries to be
clever when a console program is invoked from a GUI application: In this
case it sometimes automatically allocates a new console window. As a
consequence, the IO channels of the spawned program are directed to the
console, but the invoking application listens on channels that are now
directed to nowhere.
In this implementation we use the lowlevel facilities of CreateProcess(),
which offers a flag to tell the system not to open a console. As a side
effect, only stdin, stdout, and stderr channels will be accessible from
C programs that are spawned. Other channels (file handles, pipe handles,
etc.) are still inherited by the spawned program, but it doesn't get
enough information to access them.
Johannes Schindelin integrated path quoting and unified the various
*execv* and *spawnv* helpers. Eric Raible suggested to also quote '{'.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Diffstat (limited to 't/t1100-commit-tree-options.sh')
0 files changed, 0 insertions, 0 deletions