diff options
author | James McCoy <jamessan@jamessan.com> | 2022-03-03 12:27:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 12:27:37 -0500 |
commit | 13cabfedb2e79664b46ab44523f28a136b6ad2a8 (patch) | |
tree | 438fb7672f289ecf0683341fe68480a067252eb3 /src | |
parent | 0733f72616acca3d1340a33c4b1fee55db2be5b0 (diff) | |
parent | 045422e4a081e9dedff014346cc32eaef45e04e1 (diff) | |
download | rneovim-13cabfedb2e79664b46ab44523f28a136b6ad2a8.tar.gz rneovim-13cabfedb2e79664b46ab44523f28a136b6ad2a8.tar.bz2 rneovim-13cabfedb2e79664b46ab44523f28a136b6ad2a8.zip |
Merge pull request #17568 from groves/respect_os_proc_children_rv
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/api/vim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 9d0b096a36..c37df45c14 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -1991,7 +1991,7 @@ Array nvim_get_proc_children(Integer pid, Error *err) size_t proc_count; int rv = os_proc_children((int)pid, &proc_list, &proc_count); - if (rv != 0) { + if (rv == 2) { // syscall failed (possibly because of kernel options), try shelling out. DLOG("fallback to vim._os_proc_children()"); Array a = ARRAY_DICT_INIT; |