mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
Merge pull request #17568 from groves/respect_os_proc_children_rv
This commit is contained in:
@@ -1991,7 +1991,7 @@ Array nvim_get_proc_children(Integer pid, Error *err)
|
|||||||
|
|
||||||
size_t proc_count;
|
size_t proc_count;
|
||||||
int rv = os_proc_children((int)pid, &proc_list, &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.
|
// syscall failed (possibly because of kernel options), try shelling out.
|
||||||
DLOG("fallback to vim._os_proc_children()");
|
DLOG("fallback to vim._os_proc_children()");
|
||||||
Array a = ARRAY_DICT_INIT;
|
Array a = ARRAY_DICT_INIT;
|
||||||
|
Reference in New Issue
Block a user