Skip to main content
Module

x/dax/mod.ts>KillSignal

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Go to Latest
class KillSignal
import { KillSignal } from "https://deno.land/x/dax@0.39.1/mod.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.