Web lists-archives.com

Re: ssh cause mintty terminal not to close (tested on 4 cygwin installations)

On 2018-08-02 23:08, Andrey Repin wrote:
Greetings, Niels Kristian Jensen!


A long known issue.
mintty holds terminal open if last program finished with failure.
ssh somehow tripping this wire on occasion.


This may seem like a minor thing, but we have much trouble with Jenkins builds (started via Cygwin OpenSSH) which randomly hang forever - I wonder
 if this could be a clue in this investigation.


Try upgrading your mintty, also, if it's about automated building environment,
I don't see how's mintty can be involved.

If the "non-closure" of mintty is completely internal in mintty and not a handshake-mistake with the cygwin dll or the OS, then I agree. It seems to be the case, reading the link provided by Thomas Wolff.

For cyg Simple:
I am stuck with Cygwin 32 bit because of some tools, we use. A team is trying to get it to work with 64 bits, but that is not there yet.

For Thomas Wolff:
The link explains return code handling in mintty & ssh. A valid reason to update mitty.

Thank you, Andrey, cyg Simple & Thomas Wolff :-)

Spejd er sejt!

Det Danske Spejderkorps

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