mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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'
|
if job_status(j) ==# 'dead'
|
||||||
return job_info(j).process
|
return job_info(j).process
|
||||||
endif
|
endif
|
||||||
|
elseif has('nvim')
|
||||||
|
let j = jobstart('echo')
|
||||||
|
let pid = jobpid(j)
|
||||||
|
if jobwait([j])[0] >= 0
|
||||||
|
return pid
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
" Must add four for MS-Windows to see it as a different one.
|
" Must add four for MS-Windows to see it as a different one.
|
||||||
return a:base + 4
|
return a:base + 4
|
||||||
|
Loading…
Reference in New Issue
Block a user