aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/vfwprintf.c
diff options
context:
space:
mode:
authorErik M. Bray <erik.m.bray@gmail.com>2017-06-15 15:30:08 +0200
committerCorinna Vinschen <corinna@vinschen.de>2017-06-19 12:51:39 +0200
commit5ca286666a0cd71436a84797d5d66831790004e0 (patch)
tree79d83939c418a6c0e19a54796ca42c9e86ee22b0 /newlib/libc/stdio/vfwprintf.c
parenta5cc86ba1306f986b888edf583a3a3ca6c1d98a8 (diff)
downloadnewlib-5ca286666a0cd71436a84797d5d66831790004e0.zip
newlib-5ca286666a0cd71436a84797d5d66831790004e0.tar.gz
newlib-5ca286666a0cd71436a84797d5d66831790004e0.tar.bz2
Ensure that send() interrupted by a signal returns sucessfully
When SA_RESTART is not set on a socket, a blocking send() that is interrupted mid-transition by a signal should return success (and report just how many bytes were actually transmitted). The err variable used here was not always guaranteed to be set correctly in the loop, so better to just remove it and call WSAGetLastError() explicitly.
Diffstat (limited to 'newlib/libc/stdio/vfwprintf.c')
0 files changed, 0 insertions, 0 deletions