projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfdc421
)
Fix ChildProcess::Kill
author
Ryan Dahl
<ry@tinyclouds.org>
Mon, 22 Mar 2010 12:06:13 +0000
(
05:06
-0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Mon, 22 Mar 2010 12:06:13 +0000
(
05:06
-0700)
src/node_child_process.cc
patch
|
blob
|
history
diff --git
a/src/node_child_process.cc
b/src/node_child_process.cc
index
c1f6237
..
5cfd9ff
100644
(file)
--- 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);
}