This commit is contained in:
Kovid Goyal 2026-07-06 09:35:04 +05:30
parent a16ee94f12
commit 4e01ab48cc
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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;