diff --git a/src/node_child_process.cc b/src/node_child_process.cc index c1f6237c8e..5cfd9ff9e2 100644 --- a/src/node_child_process.cc +++ b/src/node_child_process.cc @@ -270,7 +270,7 @@ void ChildProcess::OnExit(int code) { int ChildProcess::Kill(int sig) { - if (pid_ > 0) return -1; + if (pid_ < 1) return -1; return kill(pid_, sig); }