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:
parent
83e071701b
commit
333e43e06b
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* win32/win32.c (kill): accept 0 as pid, fixes #4596
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue