diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-31 15:52:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-31 15:52:11 +0100 |
commit | b3051ce82f2e8af95ce3b6a41867f70aee5ecc82 (patch) | |
tree | 52f4e45e4fc81f14d02414e5c9e18036ed026dcf /src/channel.c | |
parent | 221cd9f4dd866503777b2fffa721c1403716ad63 (diff) | |
download | vim-git-b3051ce82f2e8af95ce3b6a41867f70aee5ecc82.tar.gz |
patch 8.1.0863: cannot see what signal caused a job to endv8.1.0863
Problem: Cannot see what signal caused a job to end.
Solution: Add "termsig" to job_info(). (Ozaki Kiichi, closes #3786)
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c index cf6827192..20cf46238 100644 --- a/src/channel.c +++ b/src/channel.c @@ -5152,6 +5152,9 @@ job_free_contents(job_T *job) vim_free(job->jv_tty_in); vim_free(job->jv_tty_out); vim_free(job->jv_stoponexit); +#ifdef UNIX + vim_free(job->jv_termsig); +#endif free_callback(job->jv_exit_cb, job->jv_exit_partial); if (job->jv_argv != NULL) { @@ -5908,6 +5911,9 @@ job_info(job_T *job, dict_T *dict) dict_add_number(dict, "exitval", job->jv_exitval); dict_add_string(dict, "exit_cb", job->jv_exit_cb); dict_add_string(dict, "stoponexit", job->jv_stoponexit); +#ifdef UNIX + dict_add_string(dict, "termsig", job->jv_termsig); +#endif l = list_alloc(); if (l != NULL) |