mirror of
https://github.com/denoland/deno.git
synced 2025-02-19 03:43:00 -05:00

We don't need to use the `deno` command here to test kill permissions and it's awkward to get right without passing `-A`. `cat` works, but for platforms other than windows. This test should have plenty of coverage on other platforms.
6 lines
126 B
TypeScript
6 lines
126 B
TypeScript
const child = new Deno.Command("cat", {
|
|
args: ["-"],
|
|
stdout: "null",
|
|
stderr: "null",
|
|
}).spawn();
|
|
child.kill("SIGTERM");
|