]> git.ipfire.org Git - thirdparty/systemd.git/commit
manager: add socket for receiving handoff timestamps from forked children
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Apr 2024 21:17:49 +0000 (23:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Apr 2024 11:33:03 +0000 (13:33 +0200)
commit817062e6211e7559ff91bcb7bb5dc4e472fc1646
treec758d23a133e69563261e3f77d712454c71beb16
parent33fc8b0d95bb05718e93476e7aa0cd6e65b0062a
manager: add socket for receiving handoff timestamps from forked children

This adds an AF_UNIX socket pair to the manager that we can collect
handoff timestamp messages on.

The idea is that forked off children send a datagram with a timestamp
and we use its sender PID to match it against the right forked off
process.

This part only implements the receiving side: a socket is created, and
listened on. Received datagrams are parsed, verified and then dispatched
to the interested units.
src/core/manager-serialize.c
src/core/manager.c
src/core/manager.h
src/core/unit.h