summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorarton <arton@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-25 12:11:44 +0000
committerarton <arton@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-25 12:11:44 +0000
commit333e43e06be3db1beddac9096f02bfe2e0f34bd7 (patch)
tree44a7452aa1b4704621f0482964051ef079021544 /win32
parent83e071701b8fb1a5fb711a153a9f682a91d19143 (diff)
* win32/win32.c (kill): accept 0 only sig is SIGINT #4596
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31345 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 ff3d33be75..22b81ed75d 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 || pid == 0 && sig != SIGINT) {
errno = EINVAL;
return -1;
}