comparison src/channel.c @ 9133:dec3b7b977c0 v7.4.1850

commit https://github.com/vim/vim/commit/bf981eeb6b4ee63ae8543a7f9865ab700159a79c Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 28 13:20:31 2016 +0200 patch 7.4.1850 Problem: GUI freezes when using a job. (Shougo) Solution: Unregister the channel when there is an input error.
author Christian Brabandt <cb@256bit.org>
date Sat, 28 May 2016 13:30:05 +0200
parents 3507fde33e6e
children ddca37101ffb
comparison
equal deleted inserted replaced
9132:09a77387f1d9 9133:dec3b7b977c0
2866 2866
2867 /* When reading from stdout is not possible, assume the other side has 2867 /* When reading from stdout is not possible, assume the other side has
2868 * died. Don't close the channel right away, it may be the wrong moment 2868 * died. Don't close the channel right away, it may be the wrong moment
2869 * to invoke callbacks. */ 2869 * to invoke callbacks. */
2870 channel->ch_to_be_closed = TRUE; 2870 channel->ch_to_be_closed = TRUE;
2871
2872 #ifdef FEAT_GUI
2873 /* Stop listening to GUI events right away. */
2874 channel_gui_unregister(channel);
2875 #endif
2871 } 2876 }
2872 2877
2873 static void 2878 static void
2874 channel_close_now(channel_T *channel) 2879 channel_close_now(channel_T *channel)
2875 { 2880 {