From 96c30cd410ddd36bbb583caca44d4834851408da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 15 Aug 2024 17:20:12 +0200 Subject: [PATCH] term: thrd_join() returns thrd_success on success, not 0 Closes #1812 --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index fe97e958..e7812e2e 100644 --- a/terminal.c +++ b/terminal.c @@ -1048,7 +1048,7 @@ reload_fonts(struct terminal *term, bool resize_grid) for (size_t i = 0; i < 4; i++) { if (tids[i] != 0) { int ret; - if (thrd_join(tids[i], &ret) != 0) + if (thrd_join(tids[i], &ret) != thrd_success) success = false; else success = success && ret;