What to do when Ctrl + C can't kill a process?
Problem
Ctrl + C doesn't always work to kill the current process (for instance, if that process is busy in certain network operations). In that case, you just see "^C" by your cursor and can't do much else. What's the easiest way to force that process to die now without losing my terminal?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: What to do when Ctrl + C can't kill a process?
To understand the problem of why Ctrl + C does not work, it is very helpful to understand what happens when you press it: The kernel tty driver causes a Ctrl + C to "send a SIGINT signal to the attached process. You can read about the different signals via man signal: Programs can ignore that signal, as they can ignore SIGTSTP as well: (Which is what most shells do when you press Ctrl + Z, which is why it is not guaranteed to work.) There are some signals which can not be ignored by the process…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix