Re: program restarts itself automatically when run from Cygwin shell

2012-06-06 Thread jjo
Actually, I think Greg Chicares-2 may have provided the answer earlier. When I set CYGWIN to procs_retry:1 the old fashioned Windows way (using the Control Panel, etc.) and then open a new Cygwin shell to run my application in, I do not see the repeated restart behavior. Furthermore, when I foll

Re: program restarts itself automatically when run from Cygwin shell

2012-06-06 Thread Eliot Moss
On 6/6/2012 7:33 PM, jjo wrote: ii) I set 'proc_retry' to 0 or 1 in a Cygwin shell like this CYGWIN=proc_retry:1 (following the example given here http://cygwin.com/ml/cygwin/2009-05/msg00103.html) and tried again. Didn't solve the problem. Sometimes still restarts more than once automaticall

Re: program restarts itself automatically when run from Cygwin shell

2012-06-06 Thread jjo
i) My application ends with 'return 0'. When I put a debugging statement such as 'cout << "Here I am" << endl' just before 'return 0' I see the message in the output just before a restart, so I'm pretty sure the code is getting there. ii) I set 'proc_retry' to 0 or 1 in a Cygwin shell like this

Re: program restarts itself automatically when run from Cygwin shell

2012-06-06 Thread Greg Chicares
On 2012-06-06 22:19Z, jjo wrote: > > Oftentimes, when I start my command line launched console application from > Cygwin it runs through to the end and then it restarts itself from the > beginning without any intervention on my part. Perhaps it's because of 'proc_retry', described here: http://