summaryrefslogtreecommitdiff
path: root/src/w32proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 0b36804b0e8..d888200c556 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -2122,6 +2122,10 @@ sys_kill (int pid, int sig)
int need_to_free = 0;
int rc = 0;
+ /* Each process is in its own process group. */
+ if (pid < 0)
+ pid = -pid;
+
/* Only handle signals that will result in the process dying */
if (sig != SIGINT && sig != SIGKILL && sig != SIGQUIT && sig != SIGHUP)
{