* 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

@ -1,3 +1,7 @@
Mon Apr 25 19:59:47 2011 Tajima, Akio <artonx@yahoo.co.jp>
* win32/win32.c (kill): accept 0 as pid, fixes #4596
Mon Apr 25 16:43:45 2011 NARUSE, Yui <naruse@ruby-lang.org>
* random.c (random_rand): remove unused variables.

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;
}