From 4e01ab48cc2d063dd3dd1e1ab8f055c22967be5a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Jul 2026 09:35:04 +0530 Subject: [PATCH] ... --- kitty/child-monitor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index e6817bb82..f969f98db 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -1775,9 +1775,10 @@ static TalkData talk_data = {0}; static int start_talk_thread(ChildMonitor *self) { if (talk_thread_started) return 0; - talk_thread_started = true; if (!init_loop_data(&talk_data.loop_data, 0)) return errno; - return pthread_create(&self->talk_thread, NULL, talk_loop, self); + int ret = pthread_create(&self->talk_thread, NULL, talk_loop, self); + talk_thread_started = ret == 0; + return ret; } typedef struct pollfd PollFD;