]> git.ipfire.org Git - thirdparty/util-linux.git/commit
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)
committerMasatake YAMATO <yamato@redhat.com>
Tue, 16 Apr 2024 20:15:18 +0000 (05:15 +0900)
commit18d9780f0e846912379c37b7840ba303299ff3c9
tree39a93d37586107cbfd83fcd61e5ab22eceb2874a
parenteaa8798a4871c7e6564e5da1c2dd6d66bbc6a7cb
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)
misc-utils/lslocks.c
tests/ts/lslocks/lslocks