Controlling Process Execution with the process Module
The process
module gives you some control over the execution of processes. Specifically, it enables you to stop the current process, kill another process, or schedule work to run on the event queue. For example, to exit the current Node.js process, you would use:
process.exit(0)
Table 9.2 lists the process control methods that are available in the process
module.
Get Node.js, MongoDB, and AngularJS Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.