commit 13cabfedb2e79664b46ab44523f28a136b6ad2a8
parent 0733f72616acca3d1340a33c4b1fee55db2be5b0
Author: James McCoy <jamessan@jamessan.com>
Date: Thu, 3 Mar 2022 12:27:37 -0500
Merge pull request #17568 from groves/respect_os_proc_children_rv
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;