From 7d8e7c0e195ad014190b0eff2663b1e3a69ad328 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 26 Feb 2017 17:00:01 -0500 Subject: [PATCH] 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. --- src/coredump/coredumpctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c index 5237e2e..942c970 100644 --- a/src/coredump/coredumpctl.c +++ b/src/coredump/coredumpctl.c @@ -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)); -- 2.7.4