From 2ba9ccc1ab25e5c631afcbb12b53f4545ca7f750 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 11 May 2023 13:53:45 +0100 Subject: fix(runtime): `ChildProcess::kill()` doesn't require additional perms (#15339) Fixes #15217. --- cli/tests/testdata/spawn_kill_permissions.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cli/tests/testdata/spawn_kill_permissions.ts (limited to 'cli/tests/testdata/spawn_kill_permissions.ts') diff --git a/cli/tests/testdata/spawn_kill_permissions.ts b/cli/tests/testdata/spawn_kill_permissions.ts new file mode 100644 index 000000000..e0c1b7bfd --- /dev/null +++ b/cli/tests/testdata/spawn_kill_permissions.ts @@ -0,0 +1,6 @@ +const child = new Deno.Command("deno", { + args: ["eval", "await new Promise(r => setTimeout(r, 2000))"], + stdout: "null", + stderr: "null", +}).spawn(); +child.kill("SIGTERM"); -- cgit v1.2.3