merges r31344 from trunk into ruby_1_9_2.

--
* win32/win32.c (kill): accept 0 as pid, fixes #4596

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2011-05-30 04:44:13 +00:00
parent 43be6769f1
commit c214c62840
3 changed files with 6 additions and 2 deletions

View file

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