fix(pty): create a loop per pty

Prevents segmentation faults due to several threads trying to run the
same (default) loop.
This commit is contained in:
Leroy Hopson 2024-03-03 00:15:07 +13:00
parent a0c9777264
commit 481a1cb04a
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 9 additions and 6 deletions

View file

@ -100,6 +100,7 @@ namespace godot
void _thread_func();
#if defined(__linux__) || defined(__APPLE__)
uv_loop_t loop;
uv_pipe_t pipe;
Error _pipe_open(const int fd);
#endif