Improve isatty and kill API docs; Deno.kill() - throw on Windows (#4497)

This commit is contained in:
Chris Knight 2020-03-26 19:52:47 +00:00 committed by GitHub
parent a053462566
commit 8bcdb422e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 7 deletions

View file

@ -1,8 +1,12 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts";
import { assert } from "../util.ts";
import { build } from "../build.ts";
export function kill(pid: number, signo: number): void {
if (build.os === "win") {
throw new Error("Not yet implemented");
}
sendSync("op_kill", { pid, signo });
}