diff --git a/ChangeLog b/ChangeLog index 3761bd194f..c45ad99fe0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Apr 25 20:53:32 2011 Tajima, Akio + + * win32/win32.c (kill): accept 0 only sig is SIGINT #4596 + Mon Apr 25 19:59:47 2011 Tajima, Akio * win32/win32.c (kill): accept 0 as pid, fixes #4596 diff --git a/win32/win32.c b/win32/win32.c index ff3d33be75..22b81ed75d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -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; }