DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BNBVb033048960 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 4BNBVb033048960 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=B2MrQ1cI X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48FF33858283 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1734953495; bh=PHGhwvdqahjAlkLGiLUQKGHMbnhmBD/Y6YBEcnFDCSo=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=B2MrQ1cItFGqfg4JfXDy8QUuQln2Z8rzgjy7Dp7W6TeVRXtbXkbl1RwkQ1LdjZtD/ Xo/oDSdLVwtpehw6TixAvVGXedDD3mk/0aVLSiENgrwWBVxdDgKVX+8XRtkwr1or9H 1/YiNlqf8ISdrl0w5oKIm45UXldr00WRcbYwAxck= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DF88C3858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DF88C3858D1E ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734953467; cv=none; b=pKCw2UUE1q5QRPx2wWnt9DuuJzhwwJsuuBhtAT6+8xCMSMj40oUMo3mKgZoIeFif4ZDn173SS+qTnCn9cEs9hbmj+U8yZwnQfmKpRrGrSLRj56rSAUJjJJidgFmLU+GTT+8anntciRGYGLlldqxGSX4V2NV7vLvRkYgNek5hSJ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734953467; c=relaxed/simple; bh=oZ0KZqXk/r3TiOEOLYXKLLp1+dHStmWs34Vtlw3K2mw=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=sUlKT74IoqzeWeCyHllvUoc3spzKJF4FbUhcVNWCwNcNeWK5fIvSDadK6dpLpGQt6JuS0hCEZ1VwxEOaA4tL98qll1GOe2+y8TY/1BmANSe2Go+K4pbjKcp8WFVLOUQP4MjGbfpW+lPZ80eWYhsY6kovLpOITSv09Khk5NKJEF0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF88C3858D1E X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734953466; x=1735558266; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GHMkhWUpML9S6DSoga2V2VpsV+g9rxsuPkFP9izGCf8=; b=BmT0oYfDt30LlMtR9mHPU68RKRXh6VzYX0pDUctKbUr9uLgdmCUKVj9yuiWNOaHQtF 2ti/Q4mVdaWSXWwN/3of/Rwms6JNWMGLgAsGdWJ9Cr1zL4u9lXSk3RkVZcfhm5ClMxzt ncU7G20BFyPR7j5qpgfXvpKh2fS+mUfbjlWTU/OqyIh+536F1lXEBqLXxVJq1rGjUHaQ s9ZqpdGiSn9CSp0NHjqQHISvZw8KPZkBBmp2Fp+x+oy393Ci7+bc5q4xWmAUMXr3Xzs0 C8zAcOJ3yrEwCG1avRpG90IbGw0BbbyvDf1kT8VbVtC0i6nO6OJ1uZsS04iNyX1EMVq6 d5ag== X-Gm-Message-State: AOJu0YyK+NFC4dkdVBcqvGhKQxlfr7Bs5xPZjUMDV57K1xhw1JpzjlT7 +zNvi4D1sVe26SBXS441RY9dKsrQIJs4YRmJdvncUCV4KtzUYKffik7EsDGMtzK/KiZ46URQDBf fLQhHh4hIFDe1syViAm39nAOxPhoyXQ== X-Gm-Gg: ASbGnctGrMUO2sHREUV3H3ZGXfhiu3euewdk9kASy7Qf+di6UBOTLQWVYpSMW/5uWdo p8C+EUcQl8p4M/SXUtKrZA2+s7Sd3ZdKJ040ewQ== X-Google-Smtp-Source: AGHT+IFnEny+VALDFlZjCmwhDRxjrPLDd7mVf3tzmCOMJX/wYT4Tf1W1HaXxiNbaMmEi3LIfVzKCse3Aza7oHRQMNRk= X-Received: by 2002:a05:6871:a401:b0:29a:ea3b:a307 with SMTP id 586e51a60fabf-2a7fb370ebemr2472933fac.10.1734953465780; Mon, 23 Dec 2024 03:31:05 -0800 (PST) MIME-Version: 1.0 References: <20241221194059 DOT ce84fac7b597eb86d3e87869 AT nifty DOT ne DOT jp> <20241221194701 DOT cd7bf8d69fe99301acbf07a8 AT nifty DOT ne DOT jp> <20241222122505 DOT 92ed938abafb2e28d3de6631 AT nifty DOT ne DOT jp> In-Reply-To: <20241222122505.92ed938abafb2e28d3de6631@nifty.ne.jp> Date: Mon, 23 Dec 2024 20:30:30 +0900 Message-ID: Subject: Re: zsh (oh-my-zsh) hangs on cygwin-3.5.5-1 To: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Daisuke Fujimura via Cygwin Reply-To: Daisuke Fujimura Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 4BNBVb033048960 > How about sending SIGCHLD to the newest child, i.e. kill -CHLD 1728 for this case? No, sent to zsh with mintty as direct parent. (In this case it was `kill -CHLD 1672`.) The result of sending SIGCHLD for the newest child is as follows: ``` $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 214 213 181 4792 pty0 197609 20:22:34 /usr/bin/zsh 213 181 181 6536 pty0 197609 20:22:34 /usr/bin/zsh 217 1 217 4788 cons0 197609 20:22:44 /usr/bin/bash 224 217 224 4728 cons0 197609 20:22:48 /usr/bin/ps 181 180 181 9652 pty0 197609 20:22:33 /usr/bin/zsh 180 1 180 4084 ? 197609 20:22:33 /usr/bin/mintty $ kill -CHLD 214 $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 217 1 217 4788 cons0 197609 20:22:44 /usr/bin/bash I 181 180 181 9652 pty0 197609 20:22:33 /usr/bin/zsh 225 217 225 2996 cons0 197609 20:26:48 /usr/bin/ps 180 1 180 4084 ? 197609 20:22:33 /usr/bin/mintty ``` The prompt returned. On Sun, Dec 22, 2024 at 12:28 PM Takashi Yano via Cygwin wrote: > > 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 -- 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