diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-06-05 08:29:10 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-11-24 14:54:15 +0100 |
commit | 1ebc96fe10fbdbec22caa26d5d52a9f095da9687 (patch) | |
tree | f0a9170522cf2836cca741690cddf2cf8051ac4c /src/nvim/os/shell.c | |
parent | 5215e3205a07b85e4e4cf1f8a8ca6be2b9556459 (diff) | |
download | rneovim-1ebc96fe10fbdbec22caa26d5d52a9f095da9687.tar.gz rneovim-1ebc96fe10fbdbec22caa26d5d52a9f095da9687.tar.bz2 rneovim-1ebc96fe10fbdbec22caa26d5d52a9f095da9687.zip |
channels: allow bytes sockets and stdio, and buffered bytes output
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r-- | src/nvim/os/shell.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index f54fe412ba..ec2ebb9d19 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -227,18 +227,15 @@ static int do_os_system(char **argv, return -1; } - // We want to deal with stream events as fast a possible while queueing - // process events, so reset everything to NULL. It prevents closing the + // Note: unlike process events, stream events are not queued, as we want to + // deal with stream events as fast a possible. It prevents closing the // streams while there's still data in the OS buffer (due to the process // exiting before all data is read). if (input != NULL) { - proc->in.events = NULL; wstream_init(&proc->in, 0); } - proc->out.events = NULL; rstream_init(&proc->out, 0); rstream_start(&proc->out, data_cb, &buf); - proc->err.events = NULL; rstream_init(&proc->err, 0); rstream_start(&proc->err, data_cb, &buf); |