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:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=PExyYCRKzPdHSJ97hw17ZfolfAriRNZfDUXc8xzZvc4 D43dLw9O9yMSjXuy9s587w0cqI8m/L7QyctfyantcSP6cvF2jPUsXQCANKKgUmhG WsfA8KeviCeNkY/qnN4o5VzD4mK06ND9yUoMCGIAfNSIRIEQn8vjnTW33tWi9Bpk = 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:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=default; bh=ymhDYHczU9aZSadtkGkbgpkfWmw=; b=yY991daNlilxy+0bx MCifIq99tXCMLydHaYEwfcjqebTL1c+bUf68J2/eicxVAd1TZkjCNtYTb4UxTTPS bedyjSx4qbv1jZpc6CQy2LW/D3VVyRJb6g8wsuea9O4iUj2dbhe/VDvKRAhBTGd4 vc6+h+MNivtaNxpJUSSTQarlnU= 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=-5.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=takashiyanoniftynejp, H*x:Sylpheed, H*UA:Sylpheed, yano X-HELO: conssluserg-03.nifty.com DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 011FD1Va025057 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1580569981; bh=qTaiCiu2RYFySREeBLGimdj1ybX5dwqoKhzQEXll+9c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JSD+sfmp0gMHkpIsPuJnREpvPyb5xfC4CXVavjyM9uTEh+NZ9Z8QcZRiUr9ASI3zs Xp8e0NV8kZeb3tuGjZy+P63bfOeQeKgD0tL7zLF8MzTIh1E5byeZe2CvVUuAMv1wOV YFchna69VhwMqkoPuZb2IGri1mF1ODw9PQvJO7j9lAWpVncFartfaoQrzHMvgDzfRP FNms7CJPZpxgyP375DF/2dHcp4+LR9XpXWlrTHRDhDowtDjfwEzjgKvxd6l/xwNeq4 FXn8cFPZOVIj7Gak72+kpKyxPS+Rhy2VkHG7PVEsodLkmR5aXL9knLhtqmAqgcfdQj bW/dzkEstoa9g== Date: Sun, 2 Feb 2020 00:13:04 +0900 From: Takashi Yano To: cygwin AT cygwin DOT com Cc: Anon User Subject: Re: Mintty/tmux hangs for 1 minute on startup - seems to be a forking issue Message-Id: <20200202001304.80c8ce320446b72ac9ad29d2@nifty.ne.jp> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On Sat, 1 Feb 2020 07:39:08 +0000 (UTC) "Anon User via cygwin" wrote: > I first reported this problem to the Mintty project at GitHub.  With their help, I was able to debug the issue to the call to forkpty.  I installed tmux and found it also hangs the exact same way.  My guess is any process which makes this fork call will hang in a similar way. Rather than copy/paste the thread, I'd rather just refer you to there : https://github.com/mintty/mintty/issues/960 > > I will also direct link to the strace log I made which includes my comment showing where the hang happens: > https://github.com/mintty/mintty/files/4136651/mintty.strace.log (Line 718 is the hanging point.) > > Also Windows 10's analyze wait chain function in TaskManager shows the process waiting for Network I/O, but we see no evidence of network activity. https://i.imgur.com/Uiw9laH.png > > I haven't seen any other windows applications hang thusly, so I'm at a loss for what I've done to my windows system to have caused this. Otherwise, I'd expect others to share my pain.  Any ideas? What happens if you run the following test code? #include #include #include int main() { int pm, ps; printf("Start.\n"); openpty(&pm, &ps, NULL, NULL, NULL); printf("PTY opened.\n"); close(pm); close(ps); printf("PTY closed.\n"); return 0; } -- Takashi Yano -- 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