diff options
Diffstat (limited to 'third_party/nix/src/nix/repl.cc')
-rw-r--r-- | third_party/nix/src/nix/repl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/nix/repl.cc b/third_party/nix/src/nix/repl.cc index 2607655f9b6b..b926d195aec1 100644 --- a/third_party/nix/src/nix/repl.cc +++ b/third_party/nix/src/nix/repl.cc @@ -394,10 +394,10 @@ static int runProgram(const std::string& program, const Strings& args) { Pid pid; pid = fork(); - if (pid == -1) { + if (pid == Pid(-1)) { throw SysError("forking"); } - if (pid == 0) { + if (pid == Pid(0)) { restoreAffinity(); execvp(program.c_str(), stringsToCharPtrs(args2).data()); _exit(1); |