aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/buf_functions_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-04-14 17:23:17 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-04-15 18:23:11 +0200
commit142ac021ac88387ef7319dc4eb1f430753480f44 (patch)
tree15c95a7e175774645b0f69eabd30b146dbc98144 /test/functional/eval/buf_functions_spec.lua
parent8fa0b8051dbe2f4e4a00c162913886a34bf78bfa (diff)
downloadrneovim-142ac021ac88387ef7319dc4eb1f430753480f44.tar.gz
rneovim-142ac021ac88387ef7319dc4eb1f430753480f44.tar.bz2
rneovim-142ac021ac88387ef7319dc4eb1f430753480f44.zip
job-control: one-shot timer instead of repeating
Before f31c26f1afb5 the timer was used to try SIGTERM *and* SIGKILL, so a repeating timer was needed. After f31c26f1afb5 process_stop() sends SIGTERM immediately, and the timer only sends SIGKILL. So we don't need a repeating timer. - Simplifies the logic: don't need to call uv_timer_stop() explicitly. - Avoids a problem: if process_stop() is called more than once in the 2-second window, the first on_process_exit() would call uv_timer_stop() which stops the timer for all stopped processes.
Diffstat (limited to 'test/functional/eval/buf_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions