From 76eebaaa4a3bcc40049b9e4ffc9f5e2a8515cbcc Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sat, 14 Dec 2019 22:59:56 +0800 Subject: [PATCH] protocol: use uv_kill to kill process --- src/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.c b/src/protocol.c index 51b07f6..dbac4a8 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -220,7 +220,7 @@ kill_process(pid_t pid, int sig) { if (pid <= 0) return; lwsl_notice("killing process %d with signal: %d\n", pid, sig); int pgid = getpgid(pid); - if (kill(pgid > 0 ? -pgid : pid, sig) != 0) { + if (uv_kill(pgid > 0 ? -pgid : pid, sig) != 0) { lwsl_err("kill: %d, errno: %d (%s)\n", pid, errno, strerror(errno)); } } -- 2.43.4