diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-05-01 14:22:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-05-01 14:22:16 +0200 |
commit | b8d4905592fc26fcd09180d7d6bfefd899f2f6c6 (patch) | |
tree | 833fcd9fd0bc16a1951144d4e1f9f99a96c97121 /src/proto/channel.pro | |
parent | 9b4ebc692d77ca8ef90d72517347f74c2474dd3d (diff) | |
download | vim-git-b8d4905592fc26fcd09180d7d6bfefd899f2f6c6.tar.gz |
patch 7.4.1814v7.4.1814
Problem: A channel may be garbage collected while it's still being used by
a job. (James McCoy)
Solution: Mark the channel as used if the job is still used. Do the same
for channels that are still used.
Diffstat (limited to 'src/proto/channel.pro')
-rw-r--r-- | src/proto/channel.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro index d14337dc6..5e0bec54b 100644 --- a/src/proto/channel.pro +++ b/src/proto/channel.pro @@ -49,6 +49,7 @@ void clear_job_options(jobopt_T *opt); void free_job_options(jobopt_T *opt); int get_job_options(typval_T *tv, jobopt_T *opt, int supported); channel_T *get_channel_arg(typval_T *tv, int check_open, int reading, int part); +int set_ref_in_job(int copyID); void job_unref(job_T *job); int free_unused_jobs_contents(int copyID, int mask); void free_unused_jobs(int copyID, int mask); |