Merge pull request #17568 from groves/respect_os_proc_children_rv

This commit is contained in:
James McCoy 2022-03-03 12:27:37 -05:00 committed by GitHub
commit 13cabfedb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;