From: Lennart Poettering Date: Wed, 17 Jul 2024 15:57:12 +0000 (+0200) Subject: terminal-util: extend timeout on background color request X-Git-Tag: v257-rc1~873^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad2fa21f833dff9eb81f8febb6bfceeaefa9326e;p=thirdparty%2Fsystemd.git 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 --- 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 = {};