[Mingw-w64-public] Program repeatedly restarts when its console is closed

2010-12-04 Thread Arthur Norman
At the end of this message is a short program. It is linked as a windows-mode executable so when it is launched it does not have a console. It then allocates one and uses it. The expected behaviour is that when I run it a fresh DOS-style console appears and I can type a few chars in and they ge

Re: [Mingw-w64-public] Program repeatedly restarts when its console is closed

2010-12-06 Thread Earnie
Arthur Norman wrote: > > If instead of launching the binary via cygwin's execv I launch it > direct from a plain old DOS shell then closing the console window > causes the program to terminate in the way I expected. > This indicates the problem to be with Cygwin. Have you asked them? I know tha

Re: [Mingw-w64-public] Program repeatedly restarts when its console is closed

2010-12-06 Thread Kai Tietz
2010/12/6 Earnie : > Arthur Norman wrote: > >> >> If instead of launching the binary via cygwin's execv I launch it >> direct from a plain old DOS shell then closing the console window >> causes the program to terminate in the way I expected. >> > > This indicates the problem to be with Cygwin.  Ha

Re: [Mingw-w64-public] Program repeatedly restarts when its console is closed

2010-12-06 Thread acn1
On Mon, 6 Dec 2010, Earnie wrote: > Arthur Norman wrote: > >> >> If instead of launching the binary via cygwin's execv I launch it >> direct from a plain old DOS shell then closing the console window >> causes the program to terminate in the way I expected. >> > > This indicates the problem to be w