1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0796
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 8.1.0796
Problem: MS-Windows 7: problem with named pipe on channel.
Solution: Put back the disconnect/connect calls. (Yasuhiro Matsumoto,
closes #3833)
Files: src/channel.c, src/testdir/test_terminal.vim
*** ../vim-8.1.0795/src/channel.c 2019-01-20 15:30:36.881328770 +0100
--- src/channel.c 2019-01-22 22:44:08.765530220 +0100
***************
*** 3181,3187 ****
if (r && nread > 0)
return CW_READY;
! if (r == 0)
return CW_ERROR;
/* perhaps write some buffer lines */
--- 3181,3193 ----
if (r && nread > 0)
return CW_READY;
!
! if (channel->ch_named_pipe)
! {
! DisconnectNamedPipe((HANDLE)fd);
! ConnectNamedPipe((HANDLE)fd, NULL);
! }
! else if (r == 0)
return CW_ERROR;
/* perhaps write some buffer lines */
***************
*** 3813,3819 ****
--- 3819,3834 ----
if (part == PART_SOCK)
res = sock_write(fd, (char *)buf, len);
else
+ {
res = fd_write(fd, (char *)buf, len);
+ #ifdef WIN32
+ if (channel->ch_named_pipe && res < 0)
+ {
+ DisconnectNamedPipe((HANDLE)fd);
+ ConnectNamedPipe((HANDLE)fd, NULL);
+ }
+ #endif
+ }
if (res < 0 && (errno == EWOULDBLOCK
#ifdef EAGAIN
|| errno == EAGAIN
*** ../vim-8.1.0795/src/testdir/test_terminal.vim 2019-01-20 18:25:50.313911236 +0100
--- src/testdir/test_terminal.vim 2019-01-22 22:46:17.424241336 +0100
***************
*** 644,651 ****
func Test_terminal_no_cmd()
" Does not work on Mac.
! " Todo: make this work on Win32 again
! if has('mac') || has('win32')
return
endif
let buf = term_start('NONE', {})
--- 644,650 ----
func Test_terminal_no_cmd()
" Does not work on Mac.
! if has('mac')
return
endif
let buf = term_start('NONE', {})
*** ../vim-8.1.0795/src/version.c 2019-01-22 22:54:56.215326924 +0100
--- src/version.c 2019-01-22 23:00:59.380030846 +0100
***************
*** 793,794 ****
--- 793,796 ----
{ /* Add new patch number below this line */
+ /**/
+ 796,
/**/
--
Facepalm statement #5: "Petrol getting more expensive? Not for me, I'm always
tanking for 20 dollars"
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|