[PATCH v2] Cygwin: signal: Do not handle signal when __SIGFLUSHFAST is sent
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Jan 8 15:48:41 GMT 2025
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?
Thanks,
Corinna
More information about the Cygwin-patches
mailing list