Mercurial > vim
comparison src/os_mswin.c @ 11181:13544aa85dc0 v8.0.0477
patch 8.0.0477: the client-server test may hang when failing
commit https://github.com/vim/vim/commit/42205551b140bee8b419b24abe210f56bb80b35e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 18 19:42:22 2017 +0100
patch 8.0.0477: the client-server test may hang when failing
Problem: The client-server test may hang when failing.
Solution: Set a timer. Add assert_report()
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 18 Mar 2017 19:45:05 +0100 |
parents | 76fb679a310e |
children | 515db00c4676 |
comparison
equal
deleted
inserted
replaced
11180:4152d770f04e | 11181:13544aa85dc0 |
---|---|
2568 * "reply_received" flag gets set. */ | 2568 * "reply_received" flag gets set. */ |
2569 | 2569 |
2570 /* Loop until we receive a reply */ | 2570 /* Loop until we receive a reply */ |
2571 while (reply_received == 0) | 2571 while (reply_received == 0) |
2572 { | 2572 { |
2573 #ifdef FEAT_TIMERS | |
2574 check_due_timer(); | |
2575 #endif | |
2573 /* Wait for a SendMessage() call to us. This could be the reply | 2576 /* Wait for a SendMessage() call to us. This could be the reply |
2574 * we are waiting for. Use a timeout of a second, to catch the | 2577 * we are waiting for. Use a timeout of a second, to catch the |
2575 * situation that the server died unexpectedly. */ | 2578 * situation that the server died unexpectedly. */ |
2576 MsgWaitForMultipleObjects(0, NULL, TRUE, 1000, QS_ALLINPUT); | 2579 MsgWaitForMultipleObjects(0, NULL, TRUE, 1000, QS_ALLINPUT); |
2577 | 2580 |