Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/core/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { MuxAsyncIterator, pooledMap } from "async/mod.ts";
import { iterateReader } from "streams/mod.ts";
import { info } from "log/mod.ts";
import { debug, info } from "log/mod.ts";
import { onCleanup } from "./cleanup.ts";
import { ProcessResult } from "./process-types.ts";

Expand Down Expand Up @@ -43,6 +43,7 @@ export async function execProcess(
// If the caller asked for stdout/stderr to be directed to the rid of an open
// file, just allow that to happen. Otherwise, specify piped and we will implement
// the proper behavior for inherit, etc....
debug(`[execProcess] ${options.cmd.join(" ")}`);
const process = Deno.run({
...options,
stdin: stdin !== undefined ? "piped" : options.stdin,
Expand Down Expand Up @@ -160,6 +161,8 @@ export async function execProcess(

processList.delete(thisProcessId);

debug(`[execProcess] Success: ${status.success}, code: ${status.code}`);

return {
success: status.success,
code: status.code,
Expand Down