Jelajahi Sumber

fix(tui): revert "fix(core): handle SIGHUP and kill process (#16057)"

This reverts commit 45ac20b8aa1c96751af6824bf7dd736554ef7938.
James Long 1 bulan lalu
induk
melakukan
a73ac650e9
1 mengubah file dengan 0 tambahan dan 5 penghapusan
  1. 0 5
      packages/opencode/src/index.ts

+ 0 - 5
packages/opencode/src/index.ts

@@ -46,11 +46,6 @@ process.on("uncaughtException", (e) => {
   })
   })
 })
 })
 
 
-// Ensure the process exits on terminal hangup (eg. closing the terminal tab).
-// Without this, long-running commands like `serve` block on a never-resolving
-// promise and survive as orphaned processes.
-process.on("SIGHUP", () => process.exit())
-
 let cli = yargs(hideBin(process.argv))
 let cli = yargs(hideBin(process.argv))
   .parserConfiguration({ "populate--": true })
   .parserConfiguration({ "populate--": true })
   .scriptName("opencode")
   .scriptName("opencode")