From: Shuanglei Tao Date: Sat, 14 Dec 2019 14:59:56 +0000 (+0800) Subject: protocol: use uv_kill to kill process X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=76eebaaa4a3bcc40049b9e4ffc9f5e2a8515cbcc;p=ttyd.git protocol: use uv_kill to kill process --- 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)); } }