mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Enforce permissions on kill(), homeDir() and execPath (#2723)
This commit is contained in:
parent
046cccfe17
commit
11c850af42
4 changed files with 24 additions and 3 deletions
|
@ -55,6 +55,7 @@ async function runStatus(rid: number): Promise<ProcessStatus> {
|
|||
/** Send a signal to process under given PID. Unix only at this moment.
|
||||
* If pid is negative, the signal will be sent to the process group identified
|
||||
* by -pid.
|
||||
* Requires the `--allow-run` flag.
|
||||
*/
|
||||
export function kill(pid: number, signo: number): void {
|
||||
const builder = flatbuffers.createBuilder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue