mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
Cleanup
This commit is contained in:
parent
16db8dc96f
commit
515662ad70
4 changed files with 7 additions and 8 deletions
|
@ -1968,7 +1968,7 @@ std::string showBytes(uint64_t bytes)
|
|||
|
||||
|
||||
// FIXME: move to libstore/build
|
||||
void commonChildInit(int stderrFd)
|
||||
void commonChildInit()
|
||||
{
|
||||
logger = makeSimpleLogger();
|
||||
|
||||
|
@ -1982,10 +1982,6 @@ void commonChildInit(int stderrFd)
|
|||
if (setsid() == -1)
|
||||
throw SysError("creating a new session");
|
||||
|
||||
/* Dup the write side of the logger pipe into stderr. */
|
||||
if (stderrFd != -1 && dup2(stderrFd, STDERR_FILENO) == -1)
|
||||
throw SysError("cannot pipe standard error into log file");
|
||||
|
||||
/* Dup stderr to stdout. */
|
||||
if (dup2(STDERR_FILENO, STDOUT_FILENO) == -1)
|
||||
throw SysError("cannot dup stderr into stdout");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue