Program repeatedly restarts when its console is closed

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Mon Dec 6 23:24:00 GMT 2010


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



More information about the Cygwin mailing list