How to stop master process without suspending all of its child processes?



How to stop master process without suspending all of its child processes?..

Answer / Dharmendra Singh Shishodia

To stop the master process without suspending its child processes in Node.js, you can use the `process.exit()` method or the `cluster.Worker.disconnect()` method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

How can plain html be rendered in express js?

1 Answers  


How to use node js in javascript?

1 Answers  


What is the passport in Node.js?

1 Answers  


What is the request object in nodejs?

1 Answers  


What are “Streams” in Node.JS?

1 Answers  


What are lts releases of node.js?

1 Answers  


Explain exit codes in Node.JS? List out some exit codes?

1 Answers  


How to stop master process without suspending all of its child processes?

1 Answers  


What is a reactor pattern in node.js?

1 Answers  


What does emitter do and what is dispatcher?

1 Answers  


How to create an Http Server using Node.js?

1 Answers  


Explain the usage of a buffer class in node.js?

1 Answers  


Categories