Skip to content

Commit

Permalink
Fix kill with process groups
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Dec 22, 2019
1 parent 53e2276 commit 4b72c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ static int do_kill(pid_t_ pid, dword_t sig, pid_t_ tgid) {
if (pid == -1) {
err = kill_everything(sig);
} else if (pid < 0) {
err = kill_group(pid, sig);
err = kill_group(-pid, sig);
} else {
struct task *task = pid_get_task(pid);
if (task == NULL) {
Expand Down

0 comments on commit 4b72c9c

Please sign in to comment.