From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127306 invoked by alias); 24 Jul 2015 07:50:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 127298 invoked by uid 89); 24 Jul 2015 07:50:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: lb3-smtp-cloud2.xs4all.net Received: from lb3-smtp-cloud2.xs4all.net (HELO lb3-smtp-cloud2.xs4all.net) (194.109.24.29) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 24 Jul 2015 07:50:31 +0000 Received: from oude-webmail.xs4all.nl ([194.109.26.18]) by smtp-cloud2.xs4all.net with ESMTP id w7qT1q0070PS7C2017qTKb; Fri, 24 Jul 2015 09:50:28 +0200 Received: from 83.162.234.136 (SquirrelMail authenticated user incog) by oude-webmail.xs4all.nl with HTTP; Fri, 24 Jul 2015 09:50:28 +0200 Message-ID: <63a08c60771faffa23bc1c029235301d.squirrel@oude-webmail.xs4all.nl> In-Reply-To: References: Date: Fri, 24 Jul 2015 07:50:00 -0000 Subject: Re: [ANNOUNCEMENT] Update: mintty 2.1.2 From: "Houder" To: cygwin@cygwin.com User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00369.txt.bz2 > mintty 2.1.2 is an update in response to a number of crash reports under > unclear circumstances; > mintty only detaches from the caller's terminal if the option -D is given Thank you, Thomas! I extracted mintty.exe (and named it mintty-v212.exe) from mintty-2.1.2-0.tar.xz, and placed it in /bin (i.e. I did not install through setup.exe) >From winmain.c (v212), // if started from console, try to detach from caller's terminal (~daemonize) // in order to not suppress signals // (indicated by isatty if linked with -mwindows) if (daemonize && !isatty(0)) { // boolean daemonize is set to true if -D is specified if (fork() > 0) exit(0); setsid(); } I gather, that v212 has the "old behaviour" if -D is not specified on the command line. Test v212: - started from the explorer: works - using a dos console (in which mintty-v212 is started): works - using a dos console (in which bash is started), followed by invocation of mintty-v212: works - using a dos console (in which cmd is started), followed by invocation of mintty-v212: works Of course, SIGINT is ignored in the third case (old behaviour). Invocation of 'mintty-v212 -D' in the third case, makes "mintty" crash again ... (hint: source code of setsid.c -- util-linux package) (... and I ask myself whether or not the condition '!isatty' is the "correct condition" to go "daemon") Henri -- 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