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/structs.h | |
parent | c0514bf4777a1d55f5785b3887c5686fd0bbe870 (diff) | |
download | vim-git-7df915d113ac1981792c50e8b000c9f5f784b78b.tar.gz |
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/structs.h')
-rw-r--r-- | src/structs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index 31accea05..c749a3691 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1421,11 +1421,13 @@ struct partial_S dict_T *pt_dict; /* dict for "self" */ }; +/* Status of a job. Order matters! */ typedef enum { JOB_FAILED, JOB_STARTED, - JOB_ENDED + JOB_ENDED, /* detected job done */ + JOB_FINISHED /* job done and cleanup done */ } jobstatus_T; /* |