diff options
author | Geert-Jan Zwiers <geertjanzwiers@protonmail.com> | 2022-06-13 22:39:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 22:39:46 +0200 |
commit | 24571a395203aad7cda07ffef0ef64285351e42b (patch) | |
tree | 8c003bb92614193b7fc4383936a820954d2c8293 /cli/dts/lib.deno.ns.d.ts | |
parent | 21dfeea3c48cf6101d71b39a1d2b0f9406818300 (diff) |
feat(runtime/signal): implement SIGINT and SIGBREAK for windows (#14694)
This commit adds support for SIGINT and SIGBREAK signals on
Windows platform.
Co-authored-by: orange soeur <juzi201314@gmail.com>
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 9ef1370ec..f9c999cb3 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2342,6 +2342,7 @@ declare namespace Deno { export type Signal = | "SIGABRT" | "SIGALRM" + | "SIGBREAK" | "SIGBUS" | "SIGCHLD" | "SIGCONT" @@ -2382,7 +2383,7 @@ declare namespace Deno { * }); * ``` * - * NOTE: This functionality is not yet implemented on Windows. + * NOTE: On Windows only SIGINT (ctrl+c) and SIGBREAK (ctrl+break) are supported. */ export function addSignalListener(signal: Signal, handler: () => void): void; @@ -2397,7 +2398,7 @@ declare namespace Deno { * Deno.removeSignalListener("SIGTERM", listener); * ``` * - * NOTE: This functionality is not yet implemented on Windows. + * NOTE: On Windows only SIGINT (ctrl+c) and SIGBREAK (ctrl+break) are supported. */ export function removeSignalListener( signal: Signal, @@ -2937,7 +2938,8 @@ declare namespace 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`. + * identified by `pid`. An error will be thrown if a negative + * `pid` is used on Windows. * * ```ts * const p = Deno.run({ |