diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-17 10:02:16 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-18 11:36:07 -0300 |
commit | 287967a2c0bba99a95131d36b94c8a880aa3b62b (patch) | |
tree | 2eaf09c1792c6371ac18ae6f592a769246cfcc29 /src/nvim/os/channel.c | |
parent | 71d9899f3cbcb2c3fc290925e5fd4300f2b9cf8c (diff) | |
download | rneovim-287967a2c0bba99a95131d36b94c8a880aa3b62b.tar.gz rneovim-287967a2c0bba99a95131d36b94c8a880aa3b62b.tar.bz2 rneovim-287967a2c0bba99a95131d36b94c8a880aa3b62b.zip |
job: Add defer flag and setter method
This is has the same effect as the RStream 'defer' flag, but also works for the
job's exit event.
Diffstat (limited to 'src/nvim/os/channel.c')
-rw-r--r-- | src/nvim/os/channel.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/os/channel.c b/src/nvim/os/channel.c index fd5eae505c..89e7f9d9de 100644 --- a/src/nvim/os/channel.c +++ b/src/nvim/os/channel.c @@ -78,7 +78,8 @@ bool channel_from_job(char **argv) channel, job_out, job_err, - NULL, + job_exit, + true, &status); if (status <= 0) { @@ -179,6 +180,11 @@ static void job_err(RStream *rstream, void *data, bool eof) // TODO(tarruda): plugin error messages should be sent to the error buffer } +static void job_exit(Job *job, void *data) +{ + // TODO(tarruda): what should be done here? +} + static void parse_msgpack(RStream *rstream, void *data, bool eof) { Channel *channel = data; |