mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-08 00:34:52 +00:00
...
This commit is contained in:
parent
a16ee94f12
commit
4e01ab48cc
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue