neovim/runtime
Justin M. Keyes 58318af718 jobwait(): fix race if job exits before waiting on it
Problem:  If a job exits while waiting on another job, the on_exit
          handler is queued but f_jobwait() skips it.
Solution: Always do process_wait(), so that handlers are run during
          f_jobwait().

fix #8302

Test case:
    $ BUSTED_ARGS="--repeat=2000 --no-keep-going" TEST_FILE=test/functional/core/job_spec.lua TEST_FILTER=waiting make functionaltest

Failure example (macOS CI):
    FAILED  test/functional/core/job_spec.lua: jobs jobwait will run callbacks while waiting
    test/functional/core/job_spec.lua:606: Expected objects to be the same.
    Passed in:
    (table: 0x1be77c80) {
      [1] = 'notification'
      [2] = 'wait'
     *[3] = {
       *[1] = 3 } }
    Expected:
    (table: 0x1be77d10) {
      [1] = 'notification'
      [2] = 'wait'
     *[3] = {
       *[1] = 4 } }
    stack traceback:
      test/functional/core/job_spec.lua:606: in function <test/functional/core/job_spec.lua:583
2019-09-03 16:14:29 +02:00
..
autoload clipboard: handle/avoid SIGTERM with previous owner #10765 2019-08-14 09:58:52 +02:00
colors vim-patch:8.0.1777: cannot cleanup before loading another colorscheme (#9104) 2018-10-11 08:27:37 +02:00
compiler vim-patch:5477506a9f01 2019-08-02 16:20:23 +02:00
doc jobwait(): fix race if job exits before waiting on it 2019-09-03 16:14:29 +02:00
ftplugin vim-patch:8.1.1937: errors when using javascriptreact #10885 2019-08-30 06:57:44 +02:00
indent vim-patch:8.1.1937: errors when using javascriptreact #10885 2019-08-30 06:57:44 +02:00
keymap vim-patch:22f1d0e35eb0 2018-10-28 14:18:21 +01:00
lua man.vim: Handle ANSI escape sequences with ":" #10267 2019-06-30 15:25:49 +02:00
macros vim-patch:cd5c8f825078 2017-11-07 01:16:42 +01:00
pack/dist/opt vim-patch:8.1.0193: terminal debugger buttons don't always work (#10874) 2019-08-29 02:19:38 +02:00
plugin runtime/matchit.vim: workaround broken 'packpath' 2019-08-04 16:49:10 +02:00
print
spell runtime: include en.utf-8.spl 2018-01-15 23:58:52 +01:00
syntax vim-patch:8.1.1937: errors when using javascriptreact #10885 2019-08-30 06:57:44 +02:00
tools vim-patch:68e6560b84f1 2019-08-02 16:20:22 +02:00
tutor runtime/tutor [ci skip] #9990 2019-05-09 23:32:57 +02:00
bugreport.vim vim-patch:314dd79cac2a 2019-07-29 20:50:07 +02:00
CMakeLists.txt build: fix doc_html target 2019-01-04 02:17:23 +01:00
delmenu.vim
filetype.vim vim-patch:8.1.1930: cannot recognize .jsx and .tsx files 2019-08-26 19:51:26 -04:00
ftoff.vim
ftplugin.vim
ftplugof.vim
indent.vim
indoff.vim
macmap.vim
makemenu.vim vim-patch:396e829fa355 2019-08-02 16:20:22 +02:00
menu.vim vim-patch:314dd79cac2a 2019-07-29 20:50:07 +02:00
mswin.vim vim-patch:d47d52232bf2 2019-07-29 20:50:07 +02:00
nvim.appdata.xml appdata: Include more info #9974 2019-05-06 22:11:59 +02:00
nvim.desktop
nvim.png Dist: make icon a proper square (#9716) 2019-03-11 21:00:12 +01:00
optwin.vim runtime/optwin.vim: missing 'previewpopup' feature 2019-08-02 16:41:18 +02:00
rgb.txt
scripts.vim vim-patch:790c18bfa5df 2019-07-29 20:50:07 +02:00
synmenu.vim vim-patch:396e829fa355 2019-08-02 16:20:22 +02:00