From 31b87d3d695e35c1daf1c88d2b5d6ddebec3e62b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 3 Aug 2016 09:01:56 +0200 Subject: Implement faster emulation of Windows NUL via temporary file --- butl/process.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'butl/process.cxx') 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 (); -- cgit v1.1