]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pipe: do short writes only once in nonblocking case too
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 19 Aug 2024 09:51:14 +0000 (11:51 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 19 Aug 2024 09:51:14 +0000 (11:51 +0200)
commit686e46ce714803f47d3183c954ceaf51976157cc
tree403b0818ba64696a0c178e7f815d9cf04b12f7c9
parent1ed909e047a22b8a2bdaed437d9dc974571835b8
Cygwin: pipe: do short writes only once in nonblocking case too

If a nonblocking write requires short writes, just try it once
as in the blocking case.  After all, we are nonblocking, so
don't loop unnecessarily.

Fixes: 170e6badb621 ("Cygwin: pipe: improve writing when pipe buffer is almost full")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler/pipe.cc
This page took 0.026917 seconds and 5 git commands to generate.