I am using Eclipse for Node.js development, along with the Nodeclipse Plugin. I am curious to know, that for a node.js program which is launched via Eclipse, how does Eclipse stop the process, when the stop icon in the console is pressed? My node.js program has signal handlers for SIGINT and SIGTERM- however, they are not invoked when the process is terminated from Eclipse.
Does Eclipse even send one of these signals? If it does not, how does Eclipse terminate the process? Is there a way to influence this?
Eclipse kills external programs when you click the red button in the console view. More specifically it uses Process.destroy() method.
See this bug for some explanation.
Even though this method could in theory terminate the process gracefully, in practice this causes SIGKILL to be sent under UNIX.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With