X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,TW_JJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <33973137.post@talk.nabble.com> Date: Wed, 6 Jun 2012 16:33:21 -0700 (PDT) From: jjo <3pf2udv2bz AT snkmail DOT com> To: cygwin AT cygwin DOT com Subject: Re: program restarts itself automatically when run from Cygwin shell In-Reply-To: <4FCFDF18.5060901@sbcglobal.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <33972885 DOT post AT talk DOT nabble DOT com> <4FCFDF18 DOT 5060901 AT sbcglobal DOT net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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