Karsten Hopp 153d6b
To: vim_dev@googlegroups.com
Karsten Hopp 153d6b
Subject: Patch 7.4.897
Karsten Hopp 153d6b
Fcc: outbox
Karsten Hopp 153d6b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 153d6b
Mime-Version: 1.0
Karsten Hopp 153d6b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 153d6b
Content-Transfer-Encoding: 8bit
Karsten Hopp 153d6b
------------
Karsten Hopp 153d6b
Karsten Hopp 153d6b
Patch 7.4.897
Karsten Hopp 153d6b
Problem:    Freeze and crash when there is a sleep in a remote command.
Karsten Hopp 153d6b
            (Karl Yngve LervÄg)
Karsten Hopp 153d6b
Solution:   Remove a message from the queue before dealing with it. (James
Karsten Hopp 153d6b
            Kolb)
Karsten Hopp 153d6b
Files:      src/if_xcmdsrv.c
Karsten Hopp 153d6b
Karsten Hopp 153d6b
Karsten Hopp 153d6b
*** ../vim-7.4.896/src/if_xcmdsrv.c	2015-09-17 23:20:38.573212578 +0200
Karsten Hopp 153d6b
--- src/if_xcmdsrv.c	2015-10-13 20:04:35.731052256 +0200
Karsten Hopp 153d6b
***************
Karsten Hopp 153d6b
*** 1235,1243 ****
Karsten Hopp 153d6b
      while (head.next != NULL && head.next != &head)
Karsten Hopp 153d6b
      {
Karsten Hopp 153d6b
  	node = head.next;
Karsten Hopp 153d6b
- 	server_parse_message(X_DISPLAY, node->propInfo, node->len);
Karsten Hopp 153d6b
  	head.next = node->next;
Karsten Hopp 153d6b
  	node->next->prev = node->prev;
Karsten Hopp 153d6b
  	vim_free(node);
Karsten Hopp 153d6b
      }
Karsten Hopp 153d6b
  }
Karsten Hopp 153d6b
--- 1235,1243 ----
Karsten Hopp 153d6b
      while (head.next != NULL && head.next != &head)
Karsten Hopp 153d6b
      {
Karsten Hopp 153d6b
  	node = head.next;
Karsten Hopp 153d6b
  	head.next = node->next;
Karsten Hopp 153d6b
  	node->next->prev = node->prev;
Karsten Hopp 153d6b
+ 	server_parse_message(X_DISPLAY, node->propInfo, node->len);
Karsten Hopp 153d6b
  	vim_free(node);
Karsten Hopp 153d6b
      }
Karsten Hopp 153d6b
  }
Karsten Hopp 153d6b
*** ../vim-7.4.896/src/version.c	2015-10-13 19:43:14.140511991 +0200
Karsten Hopp 153d6b
--- src/version.c	2015-10-13 20:04:03.531390715 +0200
Karsten Hopp 153d6b
***************
Karsten Hopp 153d6b
*** 743,744 ****
Karsten Hopp 153d6b
--- 743,746 ----
Karsten Hopp 153d6b
  {   /* Add new patch number below this line */
Karsten Hopp 153d6b
+ /**/
Karsten Hopp 153d6b
+     897,
Karsten Hopp 153d6b
  /**/
Karsten Hopp 153d6b
Karsten Hopp 153d6b
-- 
Karsten Hopp 153d6b
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 153d6b
34. You laugh at people with a 10 Mbit connection.
Karsten Hopp 153d6b
Karsten Hopp 153d6b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 153d6b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 153d6b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 153d6b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///