chiark / gitweb /
core: allow PIDs to be watched by two units at the same time
authorLennart Poettering <lennart@poettering.net>
Fri, 7 Feb 2014 10:58:25 +0000 (11:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Feb 2014 14:14:36 +0000 (15:14 +0100)
commit5ba6985b6c8ef85a8bcfeb1b65239c863436e75b
treed6e881b385efc01d14e13cb8555beb67cae7a61b
parent8190da36f71a887945297cd65d6426c78b466a50
core: allow PIDs to be watched by two units at the same time

In some cases it is interesting to map a PID to two units at the same
time. For example, when a user logs in via a getty, which is reexeced to
/sbin/login that binary will be explicitly referenced as main pid of the
getty service, as well as implicitly referenced as part of the session
scope.
src/core/manager.c
src/core/manager.h
src/core/unit.c