Skip to content

Commit

Permalink
fix: close process resources after kill
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Apr 7, 2023
1 parent b99e4ec commit db6f73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export async function execa(cmd: string[]) {
});

function childExit() {
Deno.close(process.rid);
// No need to manually pass in signo
Deno.kill(process.pid);
Deno.close(process.rid);
}

// watch ctrl + c
Expand Down

0 comments on commit db6f73f

Please sign in to comment.