]> granicus.if.org Git - vim/commitdiff
patch 7.4.1248 v7.4.1248
authorBram Moolenaar <Bram@vim.org>
Wed, 3 Feb 2016 19:22:32 +0000 (20:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 3 Feb 2016 19:22:32 +0000 (20:22 +0100)
Problem:    Can't reliably stop the channel test server.  Can't start the
            server if the python file is not executable.
Solution:   Use "pkill" instead of "killall".  Run the python file as an
            argument instead of as an executable.

src/testdir/test_channel.py [changed mode: 0755->0644]
src/testdir/test_channel.vim
src/version.c

old mode 100755 (executable)
new mode 100644 (file)
index ee7a422447f97910a4b1716614a8704861cdf155..9d4c7783720c25f3fe62d6f6673dd0771b2b6a32 100644 (file)
@@ -4,7 +4,8 @@ scriptencoding utf-8
 " This requires the Python command to run the test server.
 " This most likely only works on Unix and Windows console.
 if has('unix')
-  if !executable('python')
+  " We also need the pkill command to make sure the server can be stopped.
+  if !executable('python') || !executable('pkill')
     finish
   endif
 elseif has('win32') && !has('gui_win32')
@@ -20,7 +21,7 @@ func s:start_server()
   if has('win32')
     silent !start cmd /c start "test_channel" py test_channel.py
   else
-    silent !./test_channel.py&
+    silent !python test_channel.py&
   endif
 endfunc
 
@@ -28,7 +29,7 @@ func s:kill_server()
   if has('win32')
     call system('taskkill /IM py.exe /T /F /FI "WINDOWTITLE eq test_channel"')
   else
-    call system("killall test_channel.py")
+    call system("pkill --full test_channel.py")
   endif
 endfunc
 
index 9417f5e4456a07cd389cf4987dedb70ddbd10a89..80abec4a79761664494d518a4231426fb84d4fae 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1248,
 /**/
     1247,
 /**/