www.delorie.com/archives/browse.cgi | search |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=WFYGOK8SkXDcoBaFXSuCCj5BJrTEJ+eXvPaAX1cY4ngaqbYq1AQWy | |
NdjhOhlptB1qohm6D48xKvciHdKECpi70XWmi0cWJ/fos4JTKE03EGQFfl8qztoz | |
UULDHKcE0ImYRPMTwV2g/c9KegqHc7jqctCeVGdPMwv58OMlB1ya2s= | |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=51quwPROIbaujrDa46S6UT5/R6Q=; b=fF4T9/gaVZC4TxC8CugDvgTFNV4o | |
5ta+sYW9lHt6z4vgzjsLpZM0ksUJIF4HybljEhV3C3NSclch99sND2RXQNJ9Sz8l | |
l+LkRJ3PljxHSgIKbNp1pKCy1YR9hdqeW0FgnpyNrBagGxmZRoctH6/uQlw07qsa | |
3DftcSHjnqbJaPc= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Fri, 24 Jul 2015 15:34:08 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [ANNOUNCEMENT] Update: mintty 2.1.2 |
Message-ID: | <20150724133408.GB7535@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <announce DOT 55B1677D DOT 5080303 AT towo DOT net> <63a08c60771faffa23bc1c029235301d DOT squirrel AT oude-webmail DOT xs4all DOT nl> <55B22422 DOT 6000601 AT towo DOT net> <d9ef810e0ad325a9b51f641a10a06f0b DOT squirrel AT oude-webmail DOT xs4all DOT nl> |
MIME-Version: | 1.0 |
In-Reply-To: | <d9ef810e0ad325a9b51f641a10a06f0b.squirrel@oude-webmail.xs4all.nl> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--9zSXsLTf0vkW971A Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jul 24 15:18, Houder wrote: > Hi Thomas, >=20 > >>> mintty 2.1.2 is an update in response to a number of crash reports un= der > >>> unclear circumstances; > > To resolve this discomforting issue which I still cannot reproduce, > > could please those who experience a crash report some details about > > their calling environment? > > Could the issue be related to the occasional fork() resource problems in > > cygwin? >=20 > ... euh, I do not believe so (in my case) ... I installed v211 using setu= p, which as > you know, does a full "rebase" ... >=20 > Also using 'setsid mintty' (in case of v113, v203) does not fail ... >=20 > > How much free memory do you have? >=20 > - my computer has lots of free memory (using less than 2 Gb of 8 Gb) > - my environment: using Cygwin (only the traditional tools) > - plus: Explorer (and most of the time: Process Explorer from SysInterna= ls) >=20 > I am really surprised, that you (and others?) do not experience crashes (= v211, v212 > if -D is specfied). Failure occurs consistent on my side. >=20 > > Maybe setsid() should not be called if fork() fails... > > Could you try this please: > > if (daemonize && !isatty(0)) { > > int pid =3D fork(); > > if (pid > 0) exit(0); // exit parent process > > if (pid =3D=3D 0) setsid(); // detach child process > > if (pid < 0) { > > error("could not detach from caller"); > > exit(9); > > } > > } >=20 > Hint: source code of setsid.c -- util-linux package) >=20 > >> (... and I ask myself whether or not the condition '!isatty' is the "c= orrect condition" to > >> go "daemon") > > I wanted to check ttyname() for "/cons" but surprisingly ttyname() was > > null when started from cygwin console; >=20 > ... I expect ttyname() to return NULL, as mintty is a GUI application ...= (and it did, using > a "small GUI test program"; however it returned /dev/pty0 when executing = it from a dos console > in which mintty had been started). Yes, I am confused). >=20 > As I wrote 'and I asked myself', I was wondering about something like: 'g= etpid() !=3D 1' Guys, the Cygwin DLL is as much open source as the other stuff we're talking about here. It's a user space DLL, not a kernel driver or rocket science. Give debugging a chance. Ideally build your own Cygwin DLL with CFLAGS=3D-g to avoid optimization. Please don't let me do this alone and just give up if I don't. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --9zSXsLTf0vkW971A Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVsj7QAAoJEPU2Bp2uRE+gJUsP/A9v8yVYiaaId8mKmkqlT/Ws OomC0IuadkflPIXy/gM9Y1QL2P4TBUjdOf8g9H7OqMq5mXR1YSzG01pGhuZVWPw8 H4pe15yzXUtKwcdQ0BcmRNlTvfBnjGZTRX0jFGM8SAclA5MZS4zl3ESPORy9iTht snwr/ZjULdv25VvT01luuA8UFv9IjXSj3k2p8QmAtfIBXPg5ewEiSRu/JFtvSurV BXX4dOOK3jS1krPmxRGAhpxj/VD58d5KyBb5TcDDGY56izUDERQAG+0ta2E1/zk3 5uIhhepkD2pD6vzacmeRLNAFOKDGH3jgD1x0T/+PWvXhMQH8jGeMe9bd2Zi1WGaa WbUYDREwgQARQNXEuvfYQ8kz28jBivrSp9PHwql22bFKjqhcDvtu8tkyMsH9bAyF xfCRNuF0pQIIKNZfLoIYVy2V1Of6y+K+LgZSGW5DZhRwvp6QLeeXYEZPKx4wURj3 mzB+mHevKTOwfGMCoMEb7mwrO8wiy9D0SYbqOGSqH+hIwMgcJtmapFVldhexlEtF F7mjvwMuknQiSmfOa8km9H3jjvREgW9gxywXTXzCxw/pPswxsZ1+XRONhtd7TMTP 5hOmMJkoF04yPP/YTVSI9M0uMdcA0yG1auMWAndKCAgrYmqXgD+kZAYqnNRemXLa uXs6bptE33tNgc9rJYKU =cIea -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |