about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-04-23T07·21+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-04-23T07·21+0000
commite59c3246b96492b84c77aebe293ec68d96fe9305 (patch)
tree138a8e6bcc3ac8fb828cb4b8045305090a1ba2bb
parentf7526febe4e60e3da61664a5fb58ff19a5882ded (diff)
* Redirect stdout to stderr when executing the build script.
-rw-r--r--src/nix.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix.cc b/src/nix.cc
index 9364baf6caa6..abd2fd778041 100644
--- a/src/nix.cc
+++ b/src/nix.cc
@@ -310,6 +310,9 @@ build:
                 env2[i] = (new string(it->first + "=" + it->second))->c_str();
             env2[i] = 0;
 
+	    /* Dup stderr to stdin. */
+	    dup2(STDERR_FILENO, STDOUT_FILENO);
+
             /* Execute the builder.  This should not return. */
             execle(builder.c_str(), builder.c_str(), 0, env2);