summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorarton <arton@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-25 11:04:40 +0000
committerarton <arton@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-25 11:04:40 +0000
commit83e071701b8fb1a5fb711a153a9f682a91d19143 (patch)
tree580644c0af9416c0d5465c15b9666114008cd6c0 /win32
parent63f39fcb4045f98888b24494b77317d70a8398e0 (diff)
* win32/win32.c (kill): accept 0 as pid, fixes #4596
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 6dafecb079..ff3d33be75 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3733,7 +3733,7 @@ kill(int pid, int sig)
int ret = 0;
DWORD err;
- if (pid <= 0) {
+ if (pid < 0) {
errno = EINVAL;
return -1;
}