News for hackers. Stuff that matters.
Re:Helping a Million Developers Exit Vim by dllthomas on Tuesday May 23, 2017 @05:34PM (#14405579)
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!

There are no comments on this comment yet.