Re: [PATCH v2] Cygwin: console: Abort read() on signal if SA_RESTART is not set.

2021-02-15 Thread Corinna Vinschen via Cygwin-patches
On Feb 15 22:08, Takashi Yano via Cygwin-patches wrote: > On Mon, 15 Feb 2021 13:04:41 +0100 > Corinna Vinschen wrote: > > On Feb 14 18:42, Takashi Yano via Cygwin-patches wrote: > > > - Currently, console read() keeps reading after SIGWINCH is sent > > > even if SA_RESTART flag is not set. With

Re: [PATCH v2] Cygwin: console: Abort read() on signal if SA_RESTART is not set.

2021-02-15 Thread Takashi Yano via Cygwin-patches
On Mon, 15 Feb 2021 13:04:41 +0100 Corinna Vinschen wrote: > On Feb 14 18:42, Takashi Yano via Cygwin-patches wrote: > > - Currently, console read() keeps reading after SIGWINCH is sent > > even if SA_RESTART flag is not set. With this patch, read() > > returns EINTR on SIGWINCH if SA_RESTART f

Re: [PATCH v2] Cygwin: console: Abort read() on signal if SA_RESTART is not set.

2021-02-15 Thread Corinna Vinschen via Cygwin-patches
Hi Takashi, On Feb 14 18:42, Takashi Yano via Cygwin-patches wrote: > - Currently, console read() keeps reading after SIGWINCH is sent > even if SA_RESTART flag is not set. With this patch, read() > returns EINTR on SIGWINCH if SA_RESTART flag is not set. > The same problem for SIGQUIT and S

[PATCH v2] Cygwin: console: Abort read() on signal if SA_RESTART is not set.

2021-02-14 Thread Takashi Yano via Cygwin-patches
- Currently, console read() keeps reading after SIGWINCH is sent even if SA_RESTART flag is not set. With this patch, read() returns EINTR on SIGWINCH if SA_RESTART flag is not set. The same problem for SIGQUIT and SIGTSTP has also been fixed. --- winsup/cygwin/fhandler_console.cc | 7 +++---