3 ms·
> Codes that are handled by the operating system’s terminal driver, for example when the OS sees a 3 (Ctrl-C), it’ll send a SIGINT signal to the current program
by jiehong 2y ago
> Codes that are handled by the operating system’s terminal driver, for example when the OS sees a 3 (Ctrl-C), it’ll send a SIGINT signal to the current program
Well, assuming I run my terminal emulator, which itself runs a shell such as bash, in which I ran `ssh`, and now I'm running a long program on a remote host: when I hit `Ctrl-C`, only the long running program on the remote host gets killed.
So what is going on?
Are the shell and ssh ignoring a SIGINT signal and only pass it through?