2 ms·
In both cases, the program doesn't know what you're trying to do. It knows what you're probably trying to do. That's not enough. In both cases, this is becau
by dllthomas 9y ago
In both cases, the program doesn't know what you're trying to do. It knows what you're probably trying to do. That's not enough.
In both cases, this is because there's a race condition:
If you run a command and decide you want to kill it, you use ctrl-c. If the command finishes between you deciding to kill the command and the signal being sent, the "container" process (vim or python) receives the ctrl-c. If it always assumes "what you want" is to exit, you've maybe lost work - edits made or variables populated. Avoiding that is definitely the right call!