zsh (oh-my-zsh) hangs on cygwin-3.5.5-1

Takashi Yano takashi.yano@nifty.ne.jp
Sun Dec 22 03:25:05 GMT 2024


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.yano@nifty.ne.jp>


More information about the Cygwin mailing list