diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-03-05 20:28:09 +0100 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-03-05 20:28:09 +0100 |
commit | 7b22bec252a155514d811a8e2acc21562ac02bd4 (patch) | |
tree | ee0ea02105c832c9946cd8272f269fd38c2c80e4 /src | |
parent | 1d487dc6a682468ae00402b3720ff412b6bfb6fc (diff) |
Don't leak a file descriptor in commonChildInit()
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/build.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 4c464d17c..5bdd49bac 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -367,6 +367,7 @@ void commonChildInit(Pipe & logPipe) throw SysError(format("cannot open `%1%'") % pathNullDevice); if (dup2(fdDevNull, STDIN_FILENO) == -1) throw SysError("cannot dup null device into stdin"); + close(fdDevNull); } |