program restarts itself automatically when run from Cygwin shell
jjo
3pf2udv2bz@snkmail.com
Wed Jun 6 23:33:00 GMT 2012
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
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 automatically. Is
the default value something other than 0 or 1? Was my way of setting the
proc_retry environment variable effective?
Greg Chicares-2 wrote:
>
> 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://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html
> and a program that doesn't return an explicit value < 65535:
> http://cygwin.com/ml/cygwin-xfree/2007-05/msg00071.html
>
> --
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>
>
>
--
View this message in context: http://old.nabble.com/program-restarts-itself-automatically-when-run-from-Cygwin-shell-tp33972885p33973137.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list