deno.land / x / trex@v1.13.1 / tools / kill_process.ts

kill_process.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/** * Copyright (c) Crew Dev. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */
/** * kill open process after end all process. */export function KillProcess(process: Deno.ResourceMap) { const allProcess = Object.entries(process);
allProcess.forEach((typeProcess) => { if (typeProcess[1] !== "stdin" && typeProcess[1] !== "stdout") { Deno.close(Number(typeProcess[0])); } });}
trex

Version Info

Tagged at
9 months ago