From: Zbigniew Jędrzejewski-Szmek Date: Sun, 26 Feb 2017 22:00:01 +0000 (-0500) Subject: coredumpctl: use a 3s timeout for checking units X-Git-Tag: v233~11^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d8e7c0e195ad014190b0eff2663b1e3a69ad328;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c index 5237e2e069a..942c970d8a1 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));