account for deletion marker in /proc/pid/exe
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 16 Nov 2021 09:45:28 +0000 (10:45 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 16 Nov 2021 15:03:41 +0000 (16:03 +0100)
commit492f4a6dd23e5644d401ba9f16dadab1c4539efe
tree7e555f0dc768eddd32dc2842266e1c01b902370e
parent9050e9f7dea8f5ebb44e108100d73da7f941da40
account for deletion marker in /proc/pid/exe

The kernel appends a `` (deleted)`` suffix to the executable path
if the original binary has been unlinked since the process was
started. The ``pid_of()`` API needs to account for this when
matching process names.
src/daemonfunc.cpp