diff options
Diffstat (limited to 'src/nix-worker/nix-worker.cc')
-rw-r--r-- | src/nix-worker/nix-worker.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc index 2c3f44cc0829..674aae0b10fe 100644 --- a/src/nix-worker/nix-worker.cc +++ b/src/nix-worker/nix-worker.cc @@ -112,12 +112,12 @@ static void sigPollHandler(int sigNo) _isInterrupted = 1; blockInt = 1; canSendStderr = false; - string s = "SIGPOLL\n"; - write(STDERR_FILENO, s.c_str(), s.size()); + char * s = "SIGPOLL\n"; + write(STDERR_FILENO, s, strlen(s)); } } else { - string s = "spurious SIGPOLL\n"; - write(STDERR_FILENO, s.c_str(), s.size()); + char * s = "spurious SIGPOLL\n"; + write(STDERR_FILENO, s, strlen(s)); } } catch (Error & e) { |