-
Notifications
You must be signed in to change notification settings - Fork 58
Configurable SIGTERM instead of SIGKILL #101
Comments
The corresponding issue for node-debug is this microsoft/vscode-node-debug#1 (node-debug's very first issue!) |
@plievone @roblourens Opinions? |
@weinand That would be perfect, but would it mean that the "Terminate" action would need to check if the processes exited properly, so that the same debug toolbar can be used for "Kill" in case it is needed (instead of the toolbar hiding automatically)? Or is that a rare situation? Also "Restart" action would need to use sigterm, that is the important one. |
@weinand May I propose that you make the Terminate action a Launch Configuration attribute? It could be called "stopSignal" or "terminateSignal", and default to "SIGKILL" if not specified (to maintain current functionality). Then users could override it in their Launch Configuration. E.g., to send a "SIGINT" instead of "SIGKILL", they could update their launch configuration to:
|
This is implemented now |
Hi, debug adapter uses SIGKILL (-9) to terminate child processes in Linux and MacOS:
Could it be made configurable, so that one could use SIGTERM if one has some quick cleanup tasks in the process to be debugged? Currently they cannot run, as SIGKILL cannot be listened to. In the meantime, one can workaround this somewhat by using nodemon or such.
In case child processes won't exit when such non-default signals are used and there are leftover processes, they could be killed manually. Or perhaps one could implement treekill in cross platform way similar to https://github.com/indexzero/ps-tree .
The text was updated successfully, but these errors were encountered: