Does Eclipse trigger an exit signal when the Node.js program is stopped from the console?
I am using Eclipse for Node.js development along with the Nodeclipse plugin. I am curious to know that for a Node.js program that is launched through Eclipse, how does Eclipse stop the process when the stop button in the console is clicked? My Node.js program has signal handlers for SIGINT and SIGTERM, however they are not called when the process exits from Eclipse.
Does Eclipse fire one of these signals? If not, how does Eclipse end the process? Is there a way to influence this?
source to share
Eclipse kills external programs when you click the red button in the console view. More specifically, it uses the method Process.destroy()
. See bug for some explanation.
While this method can theoretically end the process gracefully, in practice it causes a submission SIGKILL
under UNIX.
source to share