diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-19 21:20:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-19 21:20:53 +0100 |
commit | 81b9d0bd5c705815e903e671e81b0b05828efd9c (patch) | |
tree | 3e832c3269ad004ee414c81b5ddbd65ae93ad9d5 /src/proto/os_mswin.pro | |
parent | bfd830d3e2dbd1e9b14c65625f18773074e6ac67 (diff) |
patch 8.0.0492: a failing client-server request can make Vim hangv8.0.0492
Problem: A failing client-server request can make Vim hang.
Solution: Add a timeout argument to functions that wait.
Diffstat (limited to 'src/proto/os_mswin.pro')
-rw-r--r-- | src/proto/os_mswin.pro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/proto/os_mswin.pro b/src/proto/os_mswin.pro index 8cfcb439cc..cc660a6d97 100644 --- a/src/proto/os_mswin.pro +++ b/src/proto/os_mswin.pro @@ -43,9 +43,9 @@ void serverInitMessaging(void); void serverSetName(char_u *name); char_u *serverGetVimNames(void); int serverSendReply(char_u *name, char_u *reply); -int serverSendToVim(char_u *name, char_u *cmd, char_u **result, void *ptarget, int asExpr, int silent); +int serverSendToVim(char_u *name, char_u *cmd, char_u **result, void *ptarget, int asExpr, int timeout, int silent); void serverForeground(char_u *name); -char_u *serverGetReply(HWND server, int *expr_res, int remove, int wait); +char_u *serverGetReply(HWND server, int *expr_res, int remove, int wait, int timeout); void serverProcessPendingMessages(void); char *charset_id2name(int id); char *quality_id2name(DWORD id); |