]> 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>
Fri, 12 Apr 2024 19:22:56 +0000 (04:22 +0900)
commit20df923cc3d2da12a5296223c3ff0de7484cc587
tree6ee21887fa01af325f8c9771c7c0b6c0da25c42c
parent5ebf0edb0a0531cba801c7791543c610725bf944
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>
misc-utils/lslocks.c
tests/ts/lslocks/lslocks