about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-23T17·37+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-23T17·37+0200
commitd0fad1779f85d4d356d658e99458734e9ab5809a (patch)
treea343f5685b7251090d76c7a5584c85f91ec34566 /src/libutil/util.cc
parent78224cd871e7ce9af628836995620abcb70e6935 (diff)
nix-daemon: Simplify stderr handling
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 32244b2185b6..aa9d99ec3353 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -850,6 +850,7 @@ pid_t startProcess(std::function<void()> fun, const string & errorPrefix)
     if (pid == -1) throw SysError("unable to fork");
 
     if (pid == 0) {
+        _writeToStderr = defaultWriteToStderr;
         try {
             restoreAffinity();
             fun();