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?

+3


source to share


2 answers


Nodeclipse has no special logic for this, i.e. Eclipse termination. They say that the process is killed. I don't know how exactly this is implemented in different OS. To find out, ask in the Eclipse forum or get Eclipse for Commiters and try debugging.



0


source


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.

0


source







All Articles