mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
fixup: ping.exe works with cmd.exe pipe
This commit is contained in:
@@ -677,11 +677,10 @@ describe('jobs', function()
|
|||||||
-- ..c.."', '-c', '"..c.."'])")
|
-- ..c.."', '-c', '"..c.."'])")
|
||||||
|
|
||||||
-- Create child with several descendants.
|
-- Create child with several descendants.
|
||||||
local j = (iswin()
|
local sleep_cmd = (iswin()
|
||||||
and eval([=[jobstart('start /b cmd /c "ping 127.0.0.1 -n 1 -w 30000 > NUL"]=]
|
and 'ping -n 31 127.0.0.1'
|
||||||
..[=[ & start /b cmd /c "ping 127.0.0.1 -n 1 -w 40000 > NUL"]=]
|
or 'sleep 30')
|
||||||
..[=[ & start /b cmd /c "ping 127.0.0.1 -n 1 -w 50000 > NUL"')]=])
|
local j = eval("jobstart('"..sleep_cmd..' | '..sleep_cmd..' | '..sleep_cmd.."')")
|
||||||
or eval("jobstart('sleep 30 | sleep 30 | sleep 30')"))
|
|
||||||
local ppid = funcs.jobpid(j)
|
local ppid = funcs.jobpid(j)
|
||||||
local children
|
local children
|
||||||
retry(nil, nil, function()
|
retry(nil, nil, function()
|
||||||
|
Reference in New Issue
Block a user