Fix for older Windows (7 and below) / VC

This commit is contained in:
Vladimir Dubrovin committed 2026-04-24 17:04:03 +03:00
1 parent e6c3427cab
commit 6b61cfde4c
4 files changed
+8 -7

No files matched your search

+2 -1
View File
@@ -153,6 +153,7 @@ int start_proxy_thread(struct child * chp){
pthread_t thread;
#ifdef _WIN32
HANDLE h;
DWORD num;
#endif
char r[1];
@@ -171,7 +172,7 @@ int start_proxy_thread(struct child * chp){
pthread_attr_destroy(&pa);
#endif
#ifdef _WIN32
ReadFile(conf.threadinit[0], r, 1, NULL, NULL);
ReadFile(conf.threadinit[0], r, 1, &num, NULL);
#else
while(read(conf.threadinit[0], r, 1) !=1) if(errno != EINTR) {
fprintf(stderr, "pipe failed\n");