core: when looking for the unit for a process, look at the PID hashmaps first
authorLennart Poettering <lennart@poettering.net>
Tue, 1 Sep 2015 16:47:46 +0000 (18:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 1 Sep 2015 16:47:46 +0000 (18:47 +0200)
commit5fe8876b320e9f6355425df9991ac38363684117
treee332347c31f75f794de722e37045f6cc33ef27c6
parent6fd66507378bd8706cba38f82167a54d9d116e43
core: when looking for the unit for a process, look at the PID hashmaps first

It's cheaper that going to cgroupfs, and also usually the better choice
since it's not racy and can map PIDs even if they were moved to a
different unit.
src/core/cgroup.c