Skip to main content
Module

x/netzo/deno.d.ts>Deno.kill

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
function Deno.kill
allow-run
import { Deno } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { kill } = Deno;

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 = Deno.run({
  cmd: ["sleep", "10000"]
});

Deno.kill(p.pid, "SIGINT");

Requires allow-run permission.

Parameters

pid: number
signo: Signal