@@ -374,16 +374,11 @@ process.on('SIGINT', handle);
374
374
process .on (' SIGTERM' , handle);
375
375
```
376
376
377
- * Note* : An easy way to send the ` SIGINT ` signal is with ` <Ctrl>-C ` in most
378
- terminal programs.
379
-
380
- It is important to take note of the following:
381
-
382
377
* ` SIGUSR1 ` is reserved by Node.js to start the [ debugger] [ ] . It's possible to
383
378
install a listener but doing so will _ not_ stop the debugger from starting.
384
379
* ` SIGTERM ` and ` SIGINT ` have default handlers on non-Windows platforms that
385
- resets the terminal mode before exiting with code ` 128 + signal number ` . If
386
- one of these signals has a listener installed, its default behavior will be
380
+ reset the terminal mode before exiting with code ` 128 + signal number ` . If one
381
+ of these signals has a listener installed, its default behavior will be
387
382
removed (Node.js will no longer exit).
388
383
* ` SIGPIPE ` is ignored by default. It can have a listener installed.
389
384
* ` SIGHUP ` is generated on Windows when the console window is closed, and on
@@ -394,7 +389,7 @@ It is important to take note of the following:
394
389
installed its default behavior will be removed.
395
390
* ` SIGTERM ` is not supported on Windows, it can be listened on.
396
391
* ` SIGINT ` from the terminal is supported on all platforms, and can usually be
397
- generated with ` CTRL +C` (though this may be configurable). It is not generated
392
+ generated with ` <Ctrl> +C` (though this may be configurable). It is not generated
398
393
when terminal raw mode is enabled.
399
394
* ` SIGBREAK ` is delivered on Windows when ` <Ctrl>+<Break> ` is pressed, on
400
395
non-Windows platforms it can be listened on, but there is no way to send or
@@ -989,10 +984,10 @@ process.exit(1);
989
984
990
985
The shell that executed Node.js should see the exit code as ` 1 ` .
991
986
992
- It is important to note that calling ` process.exit() ` will force the process to
993
- exit as quickly as possible * even if there are still asynchronous operations
994
- pending * that have not yet completed fully, * including* I/O operations to
995
- ` process.stdout ` and ` process. stderr` .
987
+ Calling ` process.exit() ` will force the process to exit as quickly as possible
988
+ even if there are still asynchronous operations pending that have not yet
989
+ completed fully, including I/O operations to ` process.stdout ` and
990
+ ` process.stderr ` .
996
991
997
992
In most situations, it is not actually necessary to call ` process.exit() `
998
993
explicitly. The Node.js process will exit on its own * if there is no additional
0 commit comments