diff src/structs.h @ 9083:69bb7b230094 v7.4.1826

commit https://github.com/vim/vim/commit/cf7ff70ca73218d618e7c00ab785bcf5f9120a94 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 9 17:20:14 2016 +0200 patch 7.4.1826 Problem: Callbacks are invoked when it's not safe. (Andrew Stewart) Solution: When a channel is to be closed don't invoke callbacks right away, wait for a safe moment.
author Christian Brabandt <cb@256bit.org>
date Mon, 09 May 2016 17:30:06 +0200
parents 773d627cac0b
children d362e6df1deb
line wrap: on
line diff
--- a/src/structs.h
+++ b/src/structs.h
@@ -1416,6 +1416,9 @@ struct channel_S {
     char	*ch_hostname;	/* only for socket, allocated */
     int		ch_port;	/* only for socket */
 
+    int		ch_to_be_closed; /* When TRUE reading or writing failed and
+				  * the channel must be closed when it's safe
+				  * to invoke callbacks. */
     int		ch_error;	/* When TRUE an error was reported.  Avoids
 				 * giving pages full of error messages when
 				 * the other side has exited, only mention the