1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

View file

@ -1,3 +1,7 @@
Mon Apr 25 20:53:32 2011 Tajima, Akio <artonx@yahoo.co.jp>
* win32/win32.c (kill): accept 0 only sig is SIGINT #4596
Mon Apr 25 19:59:47 2011 Tajima, Akio <artonx@yahoo.co.jp> Mon Apr 25 19:59:47 2011 Tajima, Akio <artonx@yahoo.co.jp>
* win32/win32.c (kill): accept 0 as pid, fixes #4596 * win32/win32.c (kill): accept 0 as pid, fixes #4596

View file

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