It seems that in Eclipse, if you want to send ctrl+c to a process you cant. The terminate button on the console just kills the running process without running the shutdown hooks. I know that java itself doesnt allow sending a signal to another process.
However it seems that intellij idea does have a 'exit' button next to its 'stop' button which does allow shutdown hooks to run.
Can somebody tell me how intellij does this?
I need to send ctrl+c from my program to another java process too.