From e59c3246b96492b84c77aebe293ec68d96fe9305 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 23 Apr 2003 07:21:57 +0000 Subject: [PATCH] * Redirect stdout to stderr when executing the build script. --- src/nix.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nix.cc b/src/nix.cc index 9364baf6c..abd2fd778 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);