summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2015-12-15 16:04:08 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-12-16 12:06:08 -0800
commitb4e04fb66e87a027c5f9c96bcbbba50719400169 (patch)
tree3a5eee3f453bf76dc8c3e0da0eaefba3817b76c2 /remote.c
parentxread: poll on non blocking fds (diff)
downloadtgif-b4e04fb66e87a027c5f9c96bcbbba50719400169.tar.xz
strbuf: add strbuf_read_once to read without blocking
The new call will read from a file descriptor into a strbuf once. The underlying call xread is just run once. xread only reattempts reading in case of EINTR, which makes it suitable to use for a nonblocking read. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
0 files changed, 0 insertions, 0 deletions