@@ -59,8 +59,8 @@ finished running the process will exit. Therefore you **must** only perform
59
59
checks on the module's state (like for unit tests). The callback takes one
60
60
argument, the code the process is exiting with.
61
61
62
- This event may not be fired if the process terminates due to signals like
63
- ` SIGINT ` , ` SIGTERM ` , ` SIGKILL ` , and ` SIGHUP ` .
62
+ This event is only emitted when node exits explicitly by process.exit() or
63
+ implicitly by the event loop draining .
64
64
65
65
Example of listening for ` exit ` :
66
66
@@ -240,12 +240,12 @@ Note:
240
240
- ` SIGKILL ` cannot have a listener installed, it will unconditionally terminate
241
241
Node.js on all platforms.
242
242
- ` SIGSTOP ` cannot have a listener installed.
243
- - Sending ` SIGINT ` , ` SIGTERM ` , and ` SIGKILL ` cause the unconditional exit of the
244
- target process.
245
243
246
244
Note that Windows does not support sending Signals, but Node.js offers some
247
245
emulation with ` process.kill() ` , and ` child_process.kill() ` . Sending signal ` 0 `
248
- can be used to test for the existence of a process
246
+ can be used to test for the existence of a process. Sending ` SIGINT ` ,
247
+ ` SIGTERM ` , and ` SIGKILL ` cause the unconditional termination of the target
248
+ process.
249
249
250
250
## process.stdout
251
251
0 commit comments