From 1ab3f478e7333620e3f8d424d27bd86e54886a3f Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 22 Dec 2001 01:53:27 +0000 Subject: Big bug in Write / CopyJob... --- lib/Handle.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Handle.cc') 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; -- cgit v1.2.3