]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
core: Record ExecMainStartTimestamp before forking
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 4 May 2024 14:54:41 +0000 (16:54 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 5 May 2024 12:19:30 +0000 (14:19 +0200)
commit7e0e6b50b4d26f13ccfc1df9f0daf50f839f8d00
treed3b433b576035941d177c0f7d5210d2f38846f4a
parent72007bbc9b32513c90aa7f1f6ec6d1f6d479d288
core: Record ExecMainStartTimestamp before forking

Otherwise there's a chance the handover timestamp is less than the
start timestamp depending on the whims of the scheduler.

For non-forking services, we also propagate the start timestamp into
Service->main_exec_status to make sure it starts earlier than the
handoff timestamp.
src/core/execute.c
src/core/execute.h
src/core/service.c