X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:date:from:to:subject:in-reply-to :references:message-id; q=dns; s=default; b=gyY8FCqc8zNgNUFcywXp QvC6PBoOCXA/gj7sjoOmpqPhTlSmGvVYZFnyZfOC4kxhOq9riimQ/G1VbfPP+2FZ 14FGP6oqENVvL26o5R4Wg9kpCMn+Z1YBt9KIVUMAYMMHHSckgS74b+x5WX2THgNI RjImFX82Sn3seBTZVra0Rn0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:date:from:to:subject:in-reply-to :references:message-id; s=default; bh=r5ntFRqA9HHZfDIE5g2QL/Q6XI M=; b=O1DFXtJEAB3+Ja9OtMJbuO3/Riyt1GKTp7sESJkuZB8vHW2y21kirYdkNW KSBRHlUv3BqEXrSJE3wvkpwIkwSdLDUj9sah1C2evCqrbP1T0tZdzJLEqJDQY7Jz b34h0Yss4dRPhA41btc0iyHMUsCGlR+e9a+Y+KwwZutSqFnuE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_ASCII_DIVIDERS,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Greetings, how's, hows, occasion X-HELO: tha.dds.dk MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 03 Aug 2018 12:01:50 +0200 From: nkj AT internetgruppen DOT dk To: cygwin AT cygwin DOT com Subject: Re: ssh cause mintty terminal not to close (tested on 4 cygwin installations) In-Reply-To: <1907135563.20180803000839@yandex.ru> References: <1907135563 DOT 20180803000839 AT yandex DOT ru> Message-ID: <592e78b20f5c81db97104f235696e422@internetgruppen.dk> X-Sender: nkj AT internetgruppen DOT dk User-Agent: Roundcube Webmail/1.3.0 On 2018-08-02 23:08, Andrey Repin wrote: > Greetings, Niels Kristian Jensen! > (cut) > > A long known issue. > mintty holds terminal open if last program finished with failure. > ssh somehow tripping this wire on occasion. OK. >> 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. > (cut) > > 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