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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=gsj7UwlZ800+09Se UN8DaLWpVamA+pnQY+jwTAP0wYSvhAHzI7aw0PS3xK6oG6S6GQvNWBspVkq/cjf2 aLy4H6++v3m79/nkAr8JqR+2j57lFPpWNxK7nu3hASTlyJkdo7FDrMJ7Pi3Dl/ZZ j9dICjkCKhNW2RNlkL+z/l+EySs= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=B72C/P1I+O4w5X8rEMzEOk dV3zw=; b=YDXFCMKoaZhyxJ+Tt+o7cOLmSm6lIQhvNSz/WUFa8EENbydxUCJF98 3sbfyxfBtcncbUtkD7wAFwFKk1oUqJoBnFmrlx3amm6PoZQWQTsRetJsHpY6yq/I 99TlkKautt/XmWp7/gW8IAaJ9vfEaOChvX1Q3rFKCxa4HRW3SlXo0= 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=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=HX-Priority:Normal, UD:yandex.ru, H*Ad:D*dk, H*F:D*yandex.ru X-HELO: forward104j.mail.yandex.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1533244803; bh=Wk0dneoe01gGyP2i1QsQTMpuJW7xDf9KnU3EyGSsNCo=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=XKWgZ9/qszEREhyTFy/QT+BUydUANZ7ofJJERSQQ0GDHC5tfpfCyE4MsievIQ6JtP Ob6dwOoUiQq9KnyTWAO0IsmGg1FqF6ZuBQ1ArztxuH5imM2By5aKFVUptiFPTxQfDR 5O8iBEBMdg266+cXea6AS3/MEgZgSBrXx0s8iPp8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1533244802; bh=Wk0dneoe01gGyP2i1QsQTMpuJW7xDf9KnU3EyGSsNCo=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=J3Cf4S6R+sOOoHyRYq6KTEs0vU/Kj4mOBjnhVU4rZ6gJmszOkWMZPnb+1R3E4wftI xqeJB/MaxVBHmVfQNKMwT/jd2FyWQL26lDQg0W3zAZUmnLjSY50GSHFL3vcW+JzHH3 3Z2zVXlGxSOWBpC57HrotLqsv63ekJOzOuEEZdf8= Authentication-Results: smtp3o.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Fri, 3 Aug 2018 00:08:39 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1907135563.20180803000839@yandex.ru> To: Niels Kristian Jensen , cygwin AT cygwin DOT com Subject: Re: ssh cause mintty terminal not to close (tested on 4 cygwin installations) In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Niels Kristian Jensen! > I've noticed a strange behavior of the standard Cygwin Terminal (mintty): > If I open a Cygwin Terminal (using the shortcut on the desktop installed by > Cygwin setup) and just press Ctrl-D, it writes "logout" and closes the > window as expected. > If I do the same, but give one command "ssh" first, the word > "logout" appear, the window goes black, but the window does not close (!) The > window can still be closed using the "X" in upper right corner. > If I replace the command with "ssh -V", the window closes as > expected when I press Ctrl-D. 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. > Tested versions: > Windows Server 2008 R2 > OpenSSH_7.3p1, OpenSSL 1.0.2j 26 Sep 2016 > mintty 2.7.0 (i686-pc-cygwin) > and > Windows 10 > OpenSSH_7.6p1, OpenSSL 1.0.2m 2 Nov 2017 > mintty 2.8.1 (i686-pc-cygwin) Try upgrading your mintty, also, if it's about automated building environment, I don't see how's mintty can be involved. -- With best regards, Andrey Repin Friday, August 3, 2018 0:04:12 Sorry for my terrible english... -- 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