From ad2fa21f833dff9eb81f8febb6bfceeaefa9326e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 17 Jul 2024 17:57:12 +0200 Subject: [PATCH] terminal-util: extend timeout on background color request I managed to hit the timeout a couple of times inside of slow qemu. Let's increase it a bit to 1/3s --- src/basic/terminal-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index 635b5f62ee4..df091c36a96 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -1829,7 +1829,7 @@ int get_default_background_color(double *ret_red, double *ret_green, double *ret if (r < 0) goto finish; - usec_t end = usec_add(now(CLOCK_MONOTONIC), 100 * USEC_PER_MSEC); + usec_t end = usec_add(now(CLOCK_MONOTONIC), 333 * USEC_PER_MSEC); char buf[STRLEN("\x1B]11;rgb:0/0/0\x07")]; /* shortest possible reply */ size_t buf_full = 0; BackgroundColorContext context = {}; -- 2.47.3