diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-15T14·01+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-15T14·01+0100 |
commit | 8541d27fce95f1f6a4a6c89bcbc09503ff7ea092 (patch) | |
tree | 211d86e5d5724703fc5c58e10044b812089d9420 /src/nix-daemon | |
parent | 3acc8adcad4066329913cf9ad4e1ccc535f73032 (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.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index 6256258ec396..9b3c5bda1983 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); } |