* 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
This commit is contained in:
arton 2011-04-25 11:04:40 +00:00
parent 63f39fcb40
commit 83e071701b
2 changed files with 5 additions and 1 deletions

View file

@ -3733,7 +3733,7 @@ kill(int pid, int sig)
int ret = 0;
DWORD err;
if (pid <= 0) {
if (pid < 0) {
errno = EINVAL;
return -1;
}