On Wed, 8 Jan 2025 16:48:41 +0100 Corinna Vinschen wrote: > On Dec 23 10:33, Takashi Yano wrote: > > After the commit d243e51ef1d3, zsh sometimes hangs at startup. This > > occurs because SIGCHLD, which should trigger sigsuspend(), is handled > > in cygwait() that is used to wait for a wakeup event in sig_send(), > > even when __SIGFLUSHFAST is sent. Despite __SIGFLUSHFAST being > > required to return before handling the signal, this does not happen. > > With this patch, if the signal currently being sent is __SIGFLUSHFAST, > > do not handle the received signal and keep it asserted after the > > cygwait() for the wakeup event. Apply the same logic to the cygwait() > > in the retrying loop for WriteFile() as well. > > Does this patch fix Bruno's bash issue as well?
I'm not sure because it is not reproducible as he said. I also could not reproduce that. However, at least this fixes the issue that Jeremy encountered: https://cygwin.com/pipermail/cygwin/2024-December/256977.html But, even with this patch, Jeremy reported another hang issue that also is not reproducible: https://cygwin.com/pipermail/cygwin/2024-December/256987.html -- Takashi Yano <takashi.y...@nifty.ne.jp>