From 765f0cdece338fcc09e6c318379a953132053194 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 22 Mar 2010 05:06:13 -0700 Subject: [PATCH] Fix ChildProcess::Kill --- src/node_child_process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }