aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/channel.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-23 22:25:36 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-23 22:25:36 -0300
commit56f371cb820107cf31c66be07b189818dbd527ee (patch)
tree9de6cc3996a01d133cd883d61a7c24a564a772ba /src/nvim/msgpack_rpc/channel.c
parent0df6b9168e9dc09d3e0ae6050d67b7c31c603782 (diff)
parentd7e560e5b309578f142c23467d566877cb54ee9a (diff)
downloadrneovim-56f371cb820107cf31c66be07b189818dbd527ee.tar.gz
rneovim-56f371cb820107cf31c66be07b189818dbd527ee.tar.bz2
rneovim-56f371cb820107cf31c66be07b189818dbd527ee.zip
Merge PR #2037 'Job control fixes and pseudo terminal support'
Diffstat (limited to 'src/nvim/msgpack_rpc/channel.c')
-rw-r--r--src/nvim/msgpack_rpc/channel.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c
index 3df3200d3d..00b8cd072f 100644
--- a/src/nvim/msgpack_rpc/channel.c
+++ b/src/nvim/msgpack_rpc/channel.c
@@ -132,14 +132,13 @@ uint64_t channel_from_job(char **argv)
incref(channel); // job channels are only closed by the exit_cb
int status;
- channel->data.job = job_start(argv,
- channel,
- true,
- job_out,
- job_err,
- job_exit,
- 0,
- &status);
+ JobOptions opts = JOB_OPTIONS_INIT;
+ opts.argv = argv;
+ opts.data = channel;
+ opts.stdout_cb = job_out;
+ opts.stderr_cb = job_err;
+ opts.exit_cb = job_exit;
+ channel->data.job = job_start(opts, &status);
if (status <= 0) {
if (status == 0) { // Two decrefs needed if status == 0.