coredumpctl: use a 3s timeout for checking units

This is just a hint, so we shouldn't wait too long. A short timeout
helps for the case where pid1 of dbus have crashed.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-02-26 17:00:01 -05:00
parent 92e92d71fa
commit 7d8e7c0e19
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,7 @@ static int check_units_active(void) {
if (r < 0)
return bus_log_create_error(r);
r = sd_bus_call(bus, m, 0, &error, &reply);
r = sd_bus_call(bus, m, 3 * USEC_PER_SEC, &error, &reply);
if (r < 0)
return log_error_errno(r, "Failed to check if any systemd-coredump@.service units are running: %s",
bus_error_message(&error, r));