DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BM3SEep2286635 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4BM3SEep2286635 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=LUd3IFYp X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB8603858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1734838093; bh=1d3V3XYo/HjkVT7clQh0ap+/+Dja66PnV69y0rHKjS4=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=LUd3IFYp+328yatjZSoW150yX0m73cEcvNODWlWhyBBR7OzjU6iQyDE9sBp6osa+b wTaPxcc6/sXLVgOYI+JiUnPZpx9poZkctGh+X+teCgjrtyBVHKKKMOCH+wawQrzwru eTWvQAAd8g6u9YRfD8RLPW6Ybu9YlkbNdQYg7yrU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 045E13858C54 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 045E13858C54 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734837910; cv=none; b=dJA6VWORzAzUoFDFhqU8xQJMxu2/R4GsJVMXKFF6XaFxdOjjjxbRwfV0MVRhPc6AtPrHCBw9ILtE2SaTdyOxj37XXRxz4Det7JVuQgFwOcan+g0b9cNnh1X5tlE7+oesxXmoak/1pRWrGgc6f9Y8xsMHEaMtZygWsWE0/ORnyLY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734837910; c=relaxed/simple; bh=X8zH+71SLYr38YJvqr76HoxPe4JWYFlppXDg/4RpUfA=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=OrP88t9lHIr5h1e4wyyf+bKWCgiOLcS4nEA8dAt2p/N7i10l9Ms/wCpLR0lpmS0LKzhTKvnNCzw7eMxB8QIdI3fdjP7ZjpdDHqN34+P4ZOfjKySceDp+8Dd/hksOGfo95/Q3Lt+2LP5f3n2XXMoWyKVIVqSbSk3/I8IDsW0CJKM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 045E13858C54 Date: Sun, 22 Dec 2024 12:25:05 +0900 To: cygwin AT cygwin DOT com Subject: Re: zsh (oh-my-zsh) hangs on cygwin-3.5.5-1 Message-Id: <20241222122505.92ed938abafb2e28d3de6631@nifty.ne.jp> In-Reply-To: References: <20241221194059 DOT ce84fac7b597eb86d3e87869 AT nifty DOT ne DOT jp> <20241221194701 DOT cd7bf8d69fe99301acbf07a8 AT nifty DOT ne DOT jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Sun, 22 Dec 2024 10:59:11 +0900 Daisuke Fujimura wrote: > > Could you please test if additional SIGCHLD can release hanging? > > Start mintty and check the process from another bash. > > $ ps > PID PPID PGID WINPID TTY UID STIME COMMAND > 1713 1662 1713 6800 cons0 197609 04:26:01 /usr/bin/ps > 1671 1 1671 6072 ? 197609 04:25:47 /usr/bin/mintty > I 1672 1671 1672 2096 pty0 197609 04:25:48 /usr/bin/zsh > 1662 1 1662 4696 cons0 197609 04:24:21 /usr/bin/bash > > After typing enter into zsh several times, the prompt is not returned. OK. I could reproduce it after typing enter about ~100 times. > $ ps > PID PPID PGID WINPID TTY UID STIME COMMAND > 1728 1727 1672 3948 pty0 197609 04:26:10 /usr/bin/zsh > 1731 1662 1731 7644 cons0 197609 04:26:14 /usr/bin/ps > 1727 1672 1672 4076 pty0 197609 04:26:10 /usr/bin/zsh > 1671 1 1671 6072 ? 197609 04:25:47 /usr/bin/mintty > 1672 1671 1672 2096 pty0 197609 04:25:48 /usr/bin/zsh > 1662 1 1662 4696 cons0 197609 04:24:21 /usr/bin/bash > > SIGCHLD is sent to zsh with mintty as parent, but nothing seems to change. > > $ kill -CHLD 1672 > $ ps > PID PPID PGID WINPID TTY UID STIME COMMAND > 1728 1727 1672 3948 pty0 197609 04:26:10 /usr/bin/zsh > 1727 1672 1672 4076 pty0 197609 04:26:10 /usr/bin/zsh > 1671 1 1671 6072 ? 197609 04:25:47 /usr/bin/mintty > 1672 1671 1672 2096 pty0 197609 04:25:48 /usr/bin/zsh > 1733 1662 1733 5388 cons0 197609 04:33:39 /usr/bin/ps > 1662 1 1662 4696 cons0 197609 04:24:21 /usr/bin/bash How about sending SIGCHLD to the newest child, i.e. kill -CHLD 1728 for this case? -- Takashi Yano -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple