Skip to content

Commit e2a2aa1

Browse files
Apply PR #17254: remove sighup exit
2 parents 0da7963 + 46436f8 commit e2a2aa1

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

packages/opencode/src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ process.on("uncaughtException", (e) => {
4747
})
4848
})
4949

50-
// Ensure the process exits on terminal hangup (eg. closing the terminal tab).
51-
// Without this, long-running commands like `serve` block on a never-resolving
52-
// promise and survive as orphaned processes.
53-
process.on("SIGHUP", () => process.exit())
54-
5550
let cli = yargs(hideBin(process.argv))
5651
.parserConfiguration({ "populate--": true })
5752
.scriptName("opencode")

0 commit comments

Comments
 (0)