]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsns: ignore ESRCH errors reported when accessing files under /proc
authorMasatake YAMATO <yamato@redhat.com>
Fri, 7 Jun 2024 19:54:03 +0000 (04:54 +0900)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Dec 2024 11:33:26 +0000 (12:33 +0100)
commit48e85a37a2ef7023e39d5e14848998a1eab61562
treeea44a2e3c1d986d2e221ea4f466a082c4dcfe1e6
parent34eb1f6daac0bf5b36bf9072773b007a1615e923
lsns: ignore ESRCH errors reported when accessing files under /proc

Fix #2799.

If a process is gone, system calls accessing files under /proc can
return ESRCH.

[kzak@redhat.com: - backport to stable/v2.40]

Suggested by Johannes Edmeier (@joshiste).
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lsns.c