comparison src/os_unix.c @ 8047:7c74cafac0a1 v7.4.1318

commit https://github.com/vim/vim/commit/7b3ca76a451b10d238ef946f3231762e0bd988e9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 14 19:13:43 2016 +0100 patch 7.4.1318 Problem: Channel with pipes doesn't work in GUI. Solution: Register input handlers for pipes.
author Christian Brabandt <cb@256bit.org>
date Sun, 14 Feb 2016 19:15:09 +0100
parents c6443e78cf2d
children 15253130abd8
comparison
equal deleted inserted replaced
8046:759a0d82475e 8047:7c74cafac0a1
5114 close(fd_in[0]); 5114 close(fd_in[0]);
5115 close(fd_out[1]); 5115 close(fd_out[1]);
5116 close(fd_err[1]); 5116 close(fd_err[1]);
5117 channel_set_pipes(channel, fd_in[1], fd_out[0], fd_err[0]); 5117 channel_set_pipes(channel, fd_in[1], fd_out[0], fd_err[0]);
5118 channel_set_job(channel, job); 5118 channel_set_job(channel, job);
5119 #ifdef FEAT_GUI
5120 channel_gui_register(channel);
5121 #endif
5119 5122
5120 return; 5123 return;
5121 5124
5122 failed: 5125 failed:
5126 if (channel != NULL)
5127 channel_free(channel);
5123 if (fd_in[0] >= 0) 5128 if (fd_in[0] >= 0)
5124 { 5129 {
5125 close(fd_in[0]); 5130 close(fd_in[0]);
5126 close(fd_in[1]); 5131 close(fd_in[1]);
5127 } 5132 }