aboutsummaryrefslogtreecommitdiff
path: root/src/nix-daemon
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-15 15:01:02 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-15 15:01:02 +0100
commit8541d27fce95f1f6a4a6c89bcbc09503ff7ea092 (patch)
tree211d86e5d5724703fc5c58e10044b812089d9420 /src/nix-daemon
parent3acc8adcad4066329913cf9ad4e1ccc535f73032 (diff)
Don't use std::cerr in a few places
Slightly scared of using std::cerr in a vforked process...
Diffstat (limited to 'src/nix-daemon')
-rw-r--r--src/nix-daemon/nix-daemon.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 6256258ec..9b3c5bda1 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -6,7 +6,6 @@
#include "archive.hh"
#include "globals.hh"
-#include <iostream>
#include <cstring>
#include <unistd.h>
#include <signal.h>
@@ -642,7 +641,7 @@ static void processConnection()
{
canSendStderr = false;
myPid = getpid();
- writeToStderr = tunnelStderr;
+ _writeToStderr = tunnelStderr;
#ifdef HAVE_HUP_NOTIFICATION
/* Allow us to receive SIGPOLL for events on the client socket. */
@@ -877,7 +876,7 @@ static void daemonLoop()
processConnection();
} catch (std::exception & e) {
- std::cerr << format("child error: %1%\n") % e.what();
+ writeToStderr("child error: " + string(e.what()) + "\n");
}
exit(0);
}