Skip to main content
function Deno.kill

Send a signal to process under given pid.

If pid is negative, the signal will be sent to the process group identified by pid. An error will be thrown if a negative pid is used on Windows.

const p ={
  cmd: ["sleep", "10000"]

Deno.kill(, "SIGINT");

Requires allow-run permission.


pid: number
signo: Signal