mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Update os-signals.mdx (#25372)
### What does this PR do? Remove a loose section from os-signals documentation ### How did you verify your code works? Just a small documentation change. Co-authored-by: Michael H <git@riskymh.dev>
This commit is contained in:
@@ -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.
|
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
|
```ts
|
||||||
|
|||||||
Reference in New Issue
Block a user