mirror of
https://github.com/denoland/deno
synced 2024-10-12 19:12:32 +00:00
5c349039b8
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.
7 lines
126 B
TypeScript
7 lines
126 B
TypeScript
const child = new Deno.Command("cat", {
|
|
args: ["-"],
|
|
stdout: "null",
|
|
stderr: "null",
|
|
}).spawn();
|
|
child.kill("SIGTERM");
|