mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
test(old): make getting an unused PID work (#22529)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user