delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/02/01/12:41:54

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:to:message-id:in-reply-to
:references:subject:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=fzly6Oeku2trBYWh
MQP8wRZ6hbgb+NLAq8SODopAoDmZ7K4IL/tuYpi2yvOxXxhOYXoKr/72PY+zM+jM
DcuaKFKR1J8xyUa3f91liUW/CGQ8fE2yecZTXBWaRGwac4kyJLq1wG8NWwnikXA7
obI1RBqlBBgvZdVxajbSUo70o/g=
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:to:message-id:in-reply-to
:references:subject:mime-version:content-type
:content-transfer-encoding; s=default; bh=oLlaLjwyk98r4DVHSKErWT
yM8qc=; b=a43MWIEifFfJdOe0YeKSE3pGgt82OLz7QHn7fjmTG0GahtfKfGp926
ABpHYOFGTNjLMe7WCY0EJEqEWB9yGHENhGrNXYf1uVslabv8nRA56lkxyMPGEtr9
TP4bgiFb5mFof4bETy50/sp7KfJ+by6yUmZS5hGr/OjwM7EXpSmw8=
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-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=displays, H*x:5.0, H*x:Windows
X-HELO: sonic303-24.consmr.mail.gq1.yahoo.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1580578860; bh=s3aSHZoN8dUUidrJXS7j0K5QdfKmDkUu9XH/2tSFy7A=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=PK1yDJ9aSYB4BaN5rhzNnBsR8dpSigd592IHUYD4Ut2akKSeTpRkBBLR3lXsSb4R+Q0kOMzhrzPoUevj/31PsYQ0Lh8EGiJotCJByfLpnTtMMDO5c9J0mHFH1T1c84YldxBo8vzoXFXVRLxzBWuxm2nlP2hxrM4m75+c4bReDW4EwsgvWNT+A95UMDzzV4Fck+qRDdhOPOZkq5Ue8S1rRc/KS8/MnKNijqVKiNpse4ZVqOFZHNTelGycI9AWYrMhtQGo6DUrODlKPAvphCK5yBxD1CVJKOaonmQXQlKE+G+yAasV4r3dOyPQKdKCtGOzSeZQAQ5LyROs19Kwg5pICA==
Date: Sat, 1 Feb 2020 17:40:52 +0000 (UTC)
From: "Anon User via cygwin" <cygwin AT cygwin DOT com>
Reply-To: Anon User <retry0001-vps AT yahoo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <847088463.368454.1580578852885@mail.yahoo.com>
In-Reply-To: <595178088.221931.1580542748412@mail.yahoo.com>
References: <595178088 DOT 221931 DOT 1580542748412 DOT ref AT mail DOT yahoo DOT com> <595178088 DOT 221931 DOT 1580542748412 AT mail DOT yahoo DOT com>
Subject: Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 011HfZxJ018164

What happens is it hangs on that openpty() call.  It displays Start immediately.  But then around a minute later it shows the rest.

$ ./a.exe
Start.
** hangs here about 1 minute **
PTY opened.
PTY closed.

I took the liberty of adding time() calls just before and after the openpty() call:

$ ./a.exe
Start.
1580578712
PTY opened.
1580578772
PTY closed.

It turns out to be exactly 1 minute -- like there's a 60 second timeout waiting for something...

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019