Files
neovim/runtime/doc
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
..
2019-09-02 02:27:13 +02:00
2018-10-29 09:55:07 +01:00
2019-06-01 20:14:29 +02:00
2019-07-29 20:50:07 +02:00
2019-08-02 16:20:23 +02:00
2019-08-01 16:51:53 +02:00
2019-08-02 16:20:22 +02:00
2019-08-28 01:38:58 +02:00
2019-08-02 16:20:22 +02:00
2018-10-29 09:32:29 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 09:55:07 +01:00
2019-01-26 20:38:14 +01:00
2018-10-29 09:55:07 +01:00
2019-07-29 20:50:07 +02:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2019-08-27 22:14:52 +02:00
2019-08-02 16:20:23 +02:00
2019-08-02 16:20:23 +02:00
2019-08-02 16:20:23 +02:00
2018-08-25 15:25:49 +02:00
2018-08-25 15:25:49 +02:00
2019-08-02 16:20:22 +02:00
2019-08-02 16:20:22 +02:00
2019-05-25 10:00:41 +02:00
2019-03-26 19:55:33 +01:00
2018-10-29 09:55:07 +01:00
doc
2018-11-05 22:45:48 +01:00
2019-08-02 16:20:22 +02:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2015-08-15 15:25:30 -03:00
2018-10-29 09:55:07 +01:00
2019-08-02 16:20:22 +02:00
2018-10-30 00:02:22 +01:00
2019-03-26 19:55:33 +01:00
2019-08-02 16:20:22 +02:00
2019-08-01 16:51:53 +02:00
2019-08-02 16:20:22 +02:00
2019-07-29 20:50:07 +02:00
2019-08-02 16:20:22 +02:00
2019-09-01 15:55:10 +02:00
2019-08-27 22:13:45 +02:00
2018-10-29 09:55:07 +01:00
2018-10-29 10:01:44 +01:00
2019-09-01 15:55:10 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-08-02 16:20:22 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-07-29 20:50:07 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-08-02 16:20:22 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-09-01 21:17:14 +02:00
2018-10-29 10:01:44 +01:00
2019-03-26 19:55:33 +01:00
2018-10-29 10:01:44 +01:00
2019-08-01 16:51:53 +02:00
2019-08-02 16:20:22 +02:00
2019-08-01 23:27:26 +02:00