aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
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;
}