mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
test(old): make getting an unused PID work (#22529)
This commit is contained in:
parent
089f962d6a
commit
b44b8e7687
@ -435,6 +435,12 @@ func s:get_unused_pid(base)
|
||||
if job_status(j) ==# 'dead'
|
||||
return job_info(j).process
|
||||
endif
|
||||
elseif has('nvim')
|
||||
let j = jobstart('echo')
|
||||
let pid = jobpid(j)
|
||||
if jobwait([j])[0] >= 0
|
||||
return pid
|
||||
endif
|
||||
endif
|
||||
" Must add four for MS-Windows to see it as a different one.
|
||||
return a:base + 4
|
||||
|
Loading…
Reference in New Issue
Block a user