aboutsummaryrefslogtreecommitdiff
path: root/butl/process.cxx
diff options
context:
space:
mode:
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 ();