diff --git a/docs/guides/process/os-signals.mdx b/docs/guides/process/os-signals.mdx index b124911ac3..ae91d03d84 100644 --- a/docs/guides/process/os-signals.mdx +++ b/docs/guides/process/os-signals.mdx @@ -14,16 +14,6 @@ process.on("SIGINT", () => { --- -If you don't know which signal to listen for, you listen to the umbrella `"exit"` event. - -```ts -process.on("exit", code => { - console.log(`Process exited with code ${code}`); -}); -``` - ---- - If you don't know which signal to listen for, you listen to the [`"beforeExit"`](https://nodejs.org/api/process.html#event-beforeexit) and [`"exit"`](https://nodejs.org/api/process.html#event-exit) events. ```ts