Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 5f819c5

Browse files
authored
Merge pull request #257 from gao-feng/killall
send signal to all processes in the process group of exec
2 parents a9aa2f7 + 0858430 commit 5f819c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ static int hyper_signal_process(struct hyper_pod *pod, char *json, int length)
683683
goto out;
684684
}
685685

686-
kill(exec->pid, (int)json_object_get_number(json_object(value), "signal"));
686+
kill(-exec->pid, (int)json_object_get_number(json_object(value), "signal"));
687687
ret = 0;
688688
out:
689689
json_value_free(value);

0 commit comments

Comments
 (0)