IDEA is not ending a Bash script properly
Answered
I added a "Bash" configuration that runs a shell script that in turn starts a Java process. When I stop running it via the IDE the shell process is terminated but the Java process keeps running, I can see it in Task Manager. Prior to this I just used Git Bash to run this script and Ctrl-C stops it properly.
Am I missing some configuration option to kill all processes? How do I send a Ctrl-C signal to Bash? (simply doing Ctrl-C doesn't have any effect)
Please sign in to leave a comment.
Please check this article for possible ways: http://veithen.github.io/2014/11/16/sigterm-propagation.html. E.g. you can use trap in your script.
Thanks Andrey, using "exec" worked in my case.