Module

x/dax/src/command.ts>KillSignal

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Latest
class KillSignal
import { KillSignal } from "https://dotland.deno.dev/x/dax@0.39.2/src/command.ts";

Similar to AbortSignal, but for Deno.Signal.

A KillSignal is considered aborted if its controller receives SIGTERM, SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP.

These can be created via a KillSignalController.

Constructors

new
KillSignal(symbol: Symbol, state: KillSignalState)

Properties

readonly
aborted: boolean

Returns if the command signal has ever received a SIGTERM, SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP

readonly
abortedExitCode: number | undefined

Gets the exit code to use if aborted.

Methods

linkChild(killSignal: KillSignal): { unsubscribe(): void; }

Causes the provided kill signal to be triggered when this signal receives a signal.