mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
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:
parent
92e92d71fa
commit
7d8e7c0e19
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user