Sample Header Ad - 728x90

ctrl+c closes terminal window completely - why / how?

-1 votes
1 answer
2488 views
I have a process, and when I issue ctrl+c in the terminal, it closes the terminal window completely, anybody know why that might be happening? This is how the process is now started: exec "$(dirname "$0")/suman-shell" # a it used to be started like so, and there was no problem: "./$(dirname "$0")/suman-shell" # b it does look like using exec is what is causing the terminal window to close, so why does a close the terminal window, but not b, after receiving a signal?
Asked by Alexander Mills (10734 rep)
Nov 5, 2017, 08:14 AM
Last activity: Nov 5, 2017, 08:38 PM