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

2022-01-13 Thread Takashi Yano
On Thu, 13 Jan 2022 16:11:04 -0800 Mark Geisert wrote: > Takashi Yano wrote: > > On Wed, 12 Jan 2022 07:41:41 +0100 > > Marco Atzeri wrote: > >> On 12.01.2022 07:27, Jay K wrote: > >>> Ok, here is a small demonstration of the problem. > >>> > >>> #include > >>> #include > >>> #include > >>> > >>

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

2022-01-13 Thread Mark Geisert
Takashi Yano wrote: On Wed, 12 Jan 2022 07:41:41 +0100 Marco Atzeri wrote: On 12.01.2022 07:27, Jay K wrote: Ok, here is a small demonstration of the problem. #include #include #include unsigned __stdcall thread(void* p) { unsigned i; for (i = 0; i < 100; ++i) system("./a.exe"

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

2022-01-13 Thread Takashi Yano
On Wed, 12 Jan 2022 07:41:41 +0100 Marco Atzeri wrote: > On 12.01.2022 07:27, Jay K wrote: > > Ok, here is a small demonstration of the problem. > > > > #include > > #include > > #include > > > > unsigned __stdcall thread(void* p) > > { > >unsigned i; > >for (i = 0; i < 100; ++i) > >

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

2022-01-13 Thread Eliot Moss
On 1/13/2022 1:40 AM, Jay K wrote: I don't know why I didn't get the reply in email, but this is representative of the real world code.  - Jay From: Jay K Sent: Wednesday, January 12, 2022 6:27 AM To: cyg...@sourceware.org Subject: Re: proc_waiter: error on read of child wai

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

2022-01-12 Thread Jay K
I don't know why I didn't get the reply in email, but this is representative of the real world code.  - Jay From: Jay K Sent: Wednesday, January 12, 2022 6:27 AM To: cyg...@sourceware.org Subject: Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6   Ok, here

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

2022-01-11 Thread Marco Atzeri
On 12.01.2022 07:27, Jay K wrote: Ok, here is a small demonstration of the problem. #include #include #include 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 =

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

2022-01-11 Thread Jay K
m: Jay K Sent: Wednesday, January 12, 2022 5:57 AM To: cyg...@sourceware.org Subject: Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6 Um, I know this isn't (yet) diligent/scientific, but must system create this thread? #0 0x7ff811e09e47 in KERNEL32!Cr

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

2022-01-11 Thread Jay K
Um, I know this isn't (yet) diligent/scientific, but must system create this thread? #0 0x7ff811e09e47 in KERNEL32!CreateThread () from /cygdrive/c/WINDOWS/System32/KERNEL32.DLL #1 0x0001800468eb in cygthread::create() () from /usr/bin/cygwin1.dll #2 0x00018010645f in pinfo::wait(