Fix error return of kern.ipc.posix_shm_list, which caused it (and thus
"posixshmcontrol ls") to fail for all jails that didn't happen to own the last shm object in the list.
This commit is contained in:
parent
f6de51d3e0
commit
747a47261e
@ -2045,8 +2045,10 @@ sysctl_posix_shm_list(SYSCTL_HANDLER_ARGS)
|
||||
LIST_FOREACH(shmm, &shm_dictionary[i], sm_link) {
|
||||
error = shm_fill_kinfo_locked(shmm->sm_shmfd,
|
||||
&kif, true);
|
||||
if (error == EPERM)
|
||||
if (error == EPERM) {
|
||||
error = 0;
|
||||
continue;
|
||||
}
|
||||
if (error != 0)
|
||||
break;
|
||||
pack_kinfo(&kif);
|
||||
|
Loading…
Reference in New Issue
Block a user