]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-event: always initialize sd_event.perturb
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Feb 2023 22:31:01 +0000 (07:31 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Feb 2023 01:11:45 +0000 (10:11 +0900)
commit6d2326e036ceed30f9ccdb0266713c10a44dcf6c
tree05ed46978a83887f85ddb4bba185e30337b3afb0
parenta954b2492eca58d732c0e830ed86ee303813e487
sd-event: always initialize sd_event.perturb

If the boot ID cannot be obtained, let's first fallback to the machine
ID, and if still cannot, then let's use 0.
Otherwise, no timer event source cannot be triggered.

Fixes #26549.
src/libsystemd/sd-event/sd-event.c