summaryrefslogtreecommitdiff
path: root/t/t4124-apply-ws-rule.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <johannes.sixt@telecom.at>2007-11-24 22:49:16 +0100
committerLibravatar Johannes Sixt <johannes.sixt@telecom.at>2008-06-26 08:45:10 +0200
commit7e5d776854e858ae69a4cde9db8de6675ffb5de6 (patch)
tree61bf14b4834fc26b869dc83c73dd509cfd43c14c /t/t4124-apply-ws-rule.sh
parentWindows: Implement wrappers for gethostbyname(), socket(), and connect(). (diff)
downloadtgif-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/t4124-apply-ws-rule.sh')
0 files changed, 0 insertions, 0 deletions