Send a signal to process under given pid.
If pid is negative, the signal will be sent to the process group identified by pid.
const p = Deno.run({
cmd: ["sleep", "10000"]
});
Deno.kill(p.pid, "SIGINT");
Requires allow-run permission.
© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.kill