lslocks: don't abort gathering per-process information even if opening a /proc/[0...
authorMasatake YAMATO <yamato@redhat.com>
Fri, 12 Apr 2024 18:59:39 +0000 (03:59 +0900)
committerChris Hofstaedtler <zeha@debian.org>
Sat, 27 Apr 2024 12:23:31 +0000 (14:23 +0200)
commit49832377b7274b24ba6f9f909f7968a01e215398
tree3daa0a284cd19f913da7af53b8309c4275a5c86e
parentcd35aa68c3773499ed98e117c5986fc9150ffb7b
lslocks: don't abort gathering per-process information even if opening a /proc/[0-9]* fails

If a process ($pid) taking a lock is gone while running lslocks,
gathering per-process information for the process may fail in opening
/proc/$pid. Though lslocks should work with incomplete information,
the original code stopped gathering per-process information for the
other processes.

As a result of the original behavior, tests/ts/lslocks/lslocks really
failed in an environment where multiple test cases ran simultaneously.

Close #2624 again.
See also #2633.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit 20df923cc3d2da12a5296223c3ff0de7484cc587)

Gbp-Pq: Topic upstream
Gbp-Pq: Name lslocks-don-t-abort-gathering-per-process-information-eve.patch
misc-utils/lslocks.c
tests/ts/lslocks/lslocks