Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
feat: use ChildProcess.unref()
Browse files Browse the repository at this point in the history
  • Loading branch information
kratico committed Feb 27, 2023
1 parent 8260a08 commit aa872b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ async function onReady() {
const [commandPath, ...args] = cmd
const command = new Deno.Command(commandPath!, { args })
const process = command.spawn()
process.unref()
const status = await process.status
self.addEventListener("unload", () => Deno.exit(status.code))
controller.abort()
Expand Down

0 comments on commit aa872b8

Please sign in to comment.