1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00

sd-event: fix error handling

Follow-up for 6d2326e036.

(cherry picked from commit 1912f790fe)
(cherry picked from commit a719c2ec2f)
(cherry picked from commit dd6561ff3e)
(cherry picked from commit 8be4af4204)
This commit is contained in:
Yu Watanabe 2023-02-23 07:31:01 +09:00 committed by Luca Boccassi
parent f1a8b69808
commit 056fbe84ef

View File

@ -1137,7 +1137,7 @@ static void initialize_perturb(sd_event *e) {
if (_likely_(e->perturb != USEC_INFINITY))
return;
if (sd_id128_get_boot(&id) >= 0 || sd_id128_get_machine(&id) > 0)
if (sd_id128_get_boot(&id) >= 0 || sd_id128_get_machine(&id) >= 0)
e->perturb = (id.qwords[0] ^ id.qwords[1]) % USEC_PER_MINUTE;
else
e->perturb = 0; /* This is a super early process without /proc and /etc ?? */