Let's keep all the timeout definitions in one place.
#define DEFAULT_START_LIMIT_INTERVAL (10*USEC_PER_SEC)
#define DEFAULT_START_LIMIT_BURST 5
+/* Wait for 1.5 seconds at maximum for freeze operation */
+#define FREEZE_TIMEOUT (1500 * USEC_PER_MSEC)
+
/* The default time after which exit-on-idle services exit. This
* should be kept lower than the watchdog timeout, because otherwise
* the watchdog pings will keep the loop busy. */
if (r < 0)
return log_debug_errno(r, "Failed to open connection to systemd: %m");
- /* Wait for 1.5 seconds at maximum for freeze operation */
- (void) sd_bus_set_method_call_timeout(bus, 1500 * USEC_PER_MSEC);
+ (void) sd_bus_set_method_call_timeout(bus, FREEZE_TIMEOUT);
r = bus_call_method(bus, bus_systemd_mgr, *method, &error, NULL, "s", SPECIAL_USER_SLICE);
if (r < 0)