]> git.ipfire.org Git - thirdparty/systemd.git/commit
coredump: introduce is_journald_crash() and is_pid1_crash() helpers
authorLennart Poettering <lennart@poettering.net>
Wed, 1 Mar 2017 14:58:40 +0000 (15:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 1 Mar 2017 17:13:00 +0000 (18:13 +0100)
commitb8cda92df500693e73655c221afd316522e0746d
treea4c96314d95504eef94fbbae70e9087aa843cdef
parent32a1575fbd8807bad2570af0d631a0263f0eb765
coredump: introduce is_journald_crash() and is_pid1_crash() helpers

We check these a number of times, hence let's unify these checks here.
This also allows us to make the PID 1 check more elaborate as we can
check both the PID and the cgroup. Checking the PID has the benefit that
we'll also cover cases where PID 1 might still be in the root cgroup, and
the cgroup check has the benefit that we also cover crashes in forked
off crasher processes (the way we actually do it in systemd)
src/coredump/coredump.c