summaryrefslogtreecommitdiff
path: root/lib/Handle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r--lib/Handle.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc
index e98b2c7..9f6736d 100644
--- a/lib/Handle.cc
+++ b/lib/Handle.cc
@@ -56,6 +56,9 @@ ssize_t Handle::write(const void *buf, size_t count) throw (GeneralException) {
throw IOException(GetName(), IO_WRITE, count);
}
} else if (((size_t) r) != count) {
+ if (nonblock) {
+ return r;
+ }
full = done = false;
((char *)buf) += r;
tr += r;