aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/event
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-03 08:40:54 -0700
committerGitHub <noreply@github.com>2019-09-03 08:40:54 -0700
commitb8f2436febcc5d68e572d3703a21368e69ac1cb8 (patch)
tree6201ec88d4242a1dd4f57defc036293eb7bf3d7d /src/nvim/event
parent03be64ce2ac1bd941996024a5bd0e3f9fa974445 (diff)
parent6242bac90461afb659c5536f9efa8e84775e9df2 (diff)
downloadrneovim-b8f2436febcc5d68e572d3703a21368e69ac1cb8.tar.gz
rneovim-b8f2436febcc5d68e572d3703a21368e69ac1cb8.tar.bz2
rneovim-b8f2436febcc5d68e572d3703a21368e69ac1cb8.zip
Merge #10915 'jobwait(): fix race if job exits quickly'
Diffstat (limited to 'src/nvim/event')
-rw-r--r--src/nvim/event/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/event/process.c b/src/nvim/event/process.c
index c31ecdaddf..8e9964bd37 100644
--- a/src/nvim/event/process.c
+++ b/src/nvim/event/process.c
@@ -181,8 +181,7 @@ int process_wait(Process *proc, int ms, MultiQueue *events)
got_int // interrupted by the user
|| proc->refcount == 1); // job exited
- // we'll assume that a user frantically hitting interrupt doesn't like
- // the current job. Signal that it has to be killed.
+ // Assume that a user hitting CTRL-C does not like the current job. Kill it.
if (got_int) {
got_int = false;
process_stop(proc);