Mercurial > vim
diff src/structs.h @ 14675:71c17b688bc6 v8.1.0350
patch 8.1.0350: Vim may block on ch_sendraw()
commit https://github.com/vim/vim/commit/0b1468884a2a1c5d3442cbb7119330e307f0aa3d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 6 16:27:24 2018 +0200
patch 8.1.0350: Vim may block on ch_sendraw()
Problem: Vim may block on ch_sendraw() when the job is sending data back to
Vim, which isn't read yet. (Nate Bosch)
Solution: Add the "noblock" option to job_start(). (closes #2548)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 06 Sep 2018 16:30:06 +0200 |
parents | 706b57cd1b00 |
children | 195e8b1fcbbf |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -1651,6 +1651,7 @@ struct channel_S { partial_T *ch_close_partial; int ch_drop_never; int ch_keep_open; /* do not close on read error */ + int ch_nonblock; job_T *ch_job; /* Job that uses this channel; this does not * count as a reference to avoid a circular @@ -1729,6 +1730,7 @@ typedef struct ch_mode_T jo_in_mode; ch_mode_T jo_out_mode; ch_mode_T jo_err_mode; + int jo_noblock; job_io_T jo_io[4]; /* PART_OUT, PART_ERR, PART_IN */ char_u jo_io_name_buf[4][NUMBUFLEN];