proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

Marco Atzeri marco.atzeri@gmail.com
Wed Jan 12 06:41:41 GMT 2022


On 12.01.2022 07:27, Jay K wrote:
> Ok, here is a small demonstration of the problem.
> 
> #include <stdlib.h>
> #include <stdio.h>
> #include <windows.h>
> 
> unsigned __stdcall thread(void* p)
> {
>    unsigned i;
>    for (i = 0; i < 100; ++i)
>     system("./a.exe");
>    return 0;
> }
> 
> int main()
> {
> unsigned i;
> HANDLE threads[100] = {0};
> FILE* f = fopen("a.c", "w");
> fprintf(f, "int main() { return 0; }\n");
> fclose(f);


so you are mixing Cygwin and Windows calls ?
That is looking for trouble.

Or it is a tentative to produce a test case ?

Regards
Marco



More information about the Cygwin mailing list