]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/service: try to query for new main process's starttime 32961/head
authorMike Yuan <me@yhndnzj.com>
Tue, 21 May 2024 15:43:06 +0000 (23:43 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 22 May 2024 11:03:13 +0000 (19:03 +0800)
commitf781292d6cfd1319a2be0194d5dca4703ea025a3
treee77eae6d139ce9e835ec57d3f932822a3386c5ac
parent6fb97a85c79addac8f25d90e04296cb658f8ed27
core/service: try to query for new main process's starttime

Currently, when service_set_main_pidref() is called
without specifying start_timestamp, exec_status_start()
always uses dual_timestamp_now(). This is not ideal,
though, as when the main pid changes halfway due to
e.g. sd_notify + MAINPID=, it's definitely spurious.
src/core/service.c