about summary refs log tree commit diff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-09T15·58+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-09T15·58+0100
commit198dbe7fa1807f7464ef7c15c3fd0d230f7b844e (patch)
tree9de6323624865969161d3d885463b42ca4270d57 /src/libstore/local-store.cc
parent10dcee99ed62a775c05f34aa70449945d537e1a2 (diff)
Remove some redundant close() calls
They are unnecessary because we set the close-on-exec flag.
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index bcf367d654b8..d6cdd10d6f88 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -968,8 +968,6 @@ void LocalStore::startSubstituter(const Path & substituter, RunningSubstituter &
                with --option) to the substituter. */
             setenv("_NIX_OPTIONS", settings.pack().c_str(), 1);
 
-            fromPipe.readSide.close();
-            toPipe.writeSide.close();
             if (dup2(toPipe.readSide, STDIN_FILENO) == -1)
                 throw SysError("dupping stdin");
             if (dup2(fromPipe.writeSide, STDOUT_FILENO) == -1)