0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1342

Problem:    On Mac OS/X the waittime must be > 0 for connect to work.
Solution:   Use select() in a different way. (partly by Kazunobu Kuriyama)
            Always use a waittime of 1 or more.
This commit is contained in:
Bram Moolenaar
2016-02-16 22:01:30 +01:00
parent 910b8aac5d
commit e74e8e7d75
4 changed files with 57 additions and 17 deletions

View File

@@ -10031,7 +10031,7 @@ f_ch_open(typval_T *argvars, typval_T *rettv)
if ((item = dict_find(dict, (char_u *)"timeout", -1)) != NULL)
timeout = get_tv_number(&item->di_tv);
}
if (waittime < 0 || timeout < 0)
if (timeout < 0)
{
EMSG(_(e_invarg));
return;