aboutsummaryrefslogtreecommitdiff
path: root/butl/process.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-03 09:01:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-03 09:01:56 +0200
commit31b87d3d695e35c1daf1c88d2b5d6ddebec3e62b (patch)
tree2494e235616c3bf5dcd15c5ef6780585ed5ef8c0 /butl/process.cxx
parent614d23129684f96ff0c5d77ee9c5a29be1f44272 (diff)
Implement faster emulation of Windows NUL via temporary file
Diffstat (limited to 'butl/process.cxx')
-rw-r--r--butl/process.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/butl/process.cxx b/butl/process.cxx
index b78321c..b207ee5 100644
--- a/butl/process.cxx
+++ b/butl/process.cxx
@@ -451,7 +451,11 @@ namespace butl
auto create_null = [&get_osfhandle, &fail](auto_handle& n)
{
- auto_fd fd (fdnull ());
+ // Note that we are using a faster, temporary file-based emulation of
+ // NUL since we have no way of making sure the child buffers things
+ // properly (and by default they seem no to).
+ //
+ auto_fd fd (fdnull (true));
if (fd.get () == -1)
fail ();