diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-07-24 11:56:44 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-08-13 07:41:04 -0300 |
commit | 696f9c2759b078f749625d167f3424915586108d (patch) | |
tree | 06c93b96cb9c5472bc2e0a9d00e89d2ead0d88a8 /src/nvim/os/shell.c | |
parent | 3f5af6c1c4815c5fb2a492292212b244abe23759 (diff) | |
download | rneovim-696f9c2759b078f749625d167f3424915586108d.tar.gz rneovim-696f9c2759b078f749625d167f3424915586108d.tar.bz2 rneovim-696f9c2759b078f749625d167f3424915586108d.zip |
process: Pass loop reference during initialization
Change the API so that it is passed to {uv,pty}_process_init instead of
`process_spawn`.
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r-- | src/nvim/os/shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index b9c5db4261..958b4483e8 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -205,13 +205,13 @@ static int do_os_system(char **argv, xstrlcpy(prog, argv[0], MAXPATHL); Stream in, out, err; - UvProcess uvproc = uv_process_init(&buf); + UvProcess uvproc = uv_process_init(&loop, &buf); Process *proc = &uvproc.process; proc->argv = argv; proc->in = input != NULL ? &in : NULL; proc->out = &out; proc->err = &err; - if (!process_spawn(&loop, proc)) { + if (!process_spawn(proc)) { loop_poll_events(&loop, 0); // Failed, probably due to `sh` not being executable if (!silent) { |