delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/06/18:24:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk
Message-ID: <4CFD70B3.3050704@cygwin.com>
Date: Mon, 06 Dec 2010 18:24:35 -0500
From: "Larry Hall \(Cygwin\)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Program repeatedly restarts when its console is closed
References: <alpine DOT WNT DOT 2 DOT 00 DOT 1012062305080 DOT 2572 AT panamint>
In-Reply-To: <alpine.WNT.2.00.1012062305080.2572@panamint>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 12/6/2010 6:07 PM, Arthur Norman wrote:
> 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 get
> echoed.
>
> This happens happily. EXCEPT that if before typing in 5 chars I close the
> console either via its file/close menu or by clicking the little "x" at the
> right of its title bar and IF I launched the program from cygwin using
> execv/execve (as the cygwin bash shell does) the application console winow
> closess but the program is instantly relauched.

<snip>

Sounds a bit like "proc_retry" to me.  See:

<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019