mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* 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:
parent
63f39fcb40
commit
83e071701b
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -3733,7 +3733,7 @@ kill(int pid, int sig)
|
|||
int ret = 0;
|
||||
DWORD err;
|
||||
|
||||
if (pid <= 0) {
|
||||
if (pid < 0) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue