Skip to content

Commit 8854bb4

Browse files
tyan0dscho
authored andcommitted
Cygwin: pipe: Fix a regression that raw_write() slows down
After the commit 7f3c225, writing to pipe extremely slows down. This is because cygwait(select_sem, 10, cw_cancel) is called even when write operation is already completed. With this patch, the cygwait() is called only if the write operation is not completed. Backported-from: 37ab3e0 (Cygwin: pipe: Fix a regression that raw_write() slows down, 2024-09-01) Addresses: https://cygwin.com/pipermail/cygwin/2024-August/256398.html Fixes: 7f3c225 ("Cygwin: pipe: handle signals explicitely in raw_write") Reported-by: Jim Reisert AD1C <[email protected]> Reviewed-by: Corinna Vinschen <[email protected]> Signed-off-by: Takashi Yano <[email protected]> (cherry picked from commit f78009c) Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 900a410 commit 8854bb4

File tree

1 file changed

+3
-0
lines changed
  • winsup/cygwin/release

1 file changed

+3
-0
lines changed

winsup/cygwin/release/3.5.5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ Fixes:
44
- Fix undesired behaviour of console master thread in win32-input-mode
55
which is supported by Windows Termainal.
66
Addresses: https://cygwin.com/pipermail/cygwin/2024-August/256380.html
7+
8+
- Fix a regression in 3.5.4 that writing to pipe extremely slows down.
9+
Addresses: https://cygwin.com/pipermail/cygwin/2024-August/256398.html

0 commit comments

Comments
 (0)