diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-11-17 17:25:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-11-17 17:25:32 +0100 |
commit | 7df915d113ac1981792c50e8b000c9f5f784b78b (patch) | |
tree | 873425f52305ca284850d34727534542cf8bc8e9 /src/eval.c | |
parent | c0514bf4777a1d55f5785b3887c5686fd0bbe870 (diff) |
patch 8.0.0087v8.0.0087
Problem: When the channel callback gets job info the job may already have
been deleted. (lifepillar)
Solution: Do not delete the job when the channel is still useful. (ichizok,
closes #1242, closes #1245)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 7ca129b378..9d2c5ac72b 100644 --- a/src/eval.c +++ b/src/eval.c @@ -7290,7 +7290,7 @@ get_tv_string_buf_chk(typval_T *varp, char_u *buf) if (job == NULL) return (char_u *)"no process"; status = job->jv_status == JOB_FAILED ? "fail" - : job->jv_status == JOB_ENDED ? "dead" + : job->jv_status >= JOB_ENDED ? "dead" : "run"; # ifdef UNIX vim_snprintf((char *)buf, NUMBUFLEN, |