> 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 <cygwin@cygwin.com> 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 <takashi.y...@nifty.ne.jp> > > -- > 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