summaryrefslogtreecommitdiffstats
path: root/libgloss/i386/cygmon-salib.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2017-01-14 16:29:06 +0100
committerCorinna Vinschen <corinna@vinschen.de>2017-01-14 16:29:06 +0100
commit688d943a520cf79b04e67d890cdeeefaf90d269c (patch)
tree8390c0d9aa3e98cf7534146b9d3f446442edd37d /libgloss/i386/cygmon-salib.c
parent338ce06971647635ebeeab0abd2e15d3daf3fb31 (diff)
downloadcygnal-688d943a520cf79b04e67d890cdeeefaf90d269c.tar.gz
cygnal-688d943a520cf79b04e67d890cdeeefaf90d269c.tar.bz2
cygnal-688d943a520cf79b04e67d890cdeeefaf90d269c.zip
Always try to write complete incoming buffer on pipes and fifos
This patch fixes the following problem: Commit 9636c426 refactored the pipe code especially to make sure to call WriteFile only with chunks matching the maximum atomic write count. This accidentally introduced a small change in behaviour on blocking pipes due to the success case falling through into the error case. Rather then writing atomic chunks until all bytes are written, the code immediately broke from the loop after writing the first chunk, basically the same as in case of non-blocking writes. This behaviour is not compliant to POSIX which requires "Write requests to a pipe or FIFO [...] * If the O_NONBLOCK flag is clear, a write request may cause the thread to block, but on normal completion it shall return nbyte." Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'libgloss/i386/cygmon-salib.c')
0 files changed, 0 insertions, 0 deletions