diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-06 16:27:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-06 16:27:24 +0200 |
commit | 0b1468884a2a1c5d3442cbb7119330e307f0aa3d (patch) | |
tree | a459e23a481dc0f19bbbe4acbdc35756ed2c7efa /src/structs.h | |
parent | ed5a9d661248a2160368f1b0ab3a1bf74831db04 (diff) | |
download | vim-git-0b1468884a2a1c5d3442cbb7119330e307f0aa3d.tar.gz |
patch 8.1.0350: Vim may block on ch_sendraw()v8.1.0350
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)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index ec109eb89..253f774ab 100644 --- 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]; |