diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-05-30 09:09:28 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-05-30 15:51:48 +0200 |
commit | 1d617b35fef5f7783287965f766c8bb85e932b8e (patch) | |
tree | 7511e53ba2ab2a1e9cd9344f8128b90d5af1935d /src/shared/bus-unit-util.c | |
parent | sleep,home: clean up logs for session freezer a bit (diff) | |
download | systemd-1d617b35fef5f7783287965f766c8bb85e932b8e.tar.xz systemd-1d617b35fef5f7783287965f766c8bb85e932b8e.zip |
bus-unit-util: extend the bus call timeout for UnitFreezer
Might fix #33083
There's another report available on Mastodon:
https://m.otter.homes/@kaixin/112510783502516607
https://m.otter.homes/@kaixin/112510803023469180
Diffstat (limited to '')
-rw-r--r-- | src/shared/bus-unit-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c index 8de9f374e3..22dbf62ab2 100644 --- a/src/shared/bus-unit-util.c +++ b/src/shared/bus-unit-util.c @@ -2945,8 +2945,8 @@ typedef struct UnitFreezer { sd_bus *bus; } UnitFreezer; -/* Wait for 1.5 seconds at maximum for freeze operation */ -#define FREEZE_BUS_CALL_TIMEOUT (1500 * USEC_PER_MSEC) +/* Wait for 10 seconds at maximum for freezer operation */ +#define FREEZE_BUS_CALL_TIMEOUT (10 * USEC_PER_SEC) UnitFreezer* unit_freezer_free(UnitFreezer *f) { if (!f) |