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)

0
2 comments

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.

1
Avatar
Permanently deleted user

Thanks Andrey, using "exec" worked in my case.

0

Please sign in to leave a comment.