0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

patch 8.1.0845: having job_status() free the job causes problems

Problem:    Having job_status() free the job causes problems.
Solution:   Do not actually free the job or terminal yet, put it in a list and
            free it a bit later. Do not use a terminal after checking the job
            status.  (closes #3873)
This commit is contained in:
Bram Moolenaar
2019-01-29 22:29:07 +01:00
parent 50948e4ac2
commit 2a4857a1fc
5 changed files with 111 additions and 33 deletions

View File

@@ -6386,6 +6386,9 @@ parse_queued_messages(void)
// changes, e.g. stdin may have been closed.
if (job_check_ended())
continue;
# endif
# ifdef FEAT_TERMINAL
free_unused_terminals();
# endif
break;
}