From 57633137f749b0098eaf703f49ed00c96128966d Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 30 Oct 2001 17:38:54 +0000 Subject: Huge work on Tasking System. --- lib/Handle.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Handle.cc') diff --git a/lib/Handle.cc b/lib/Handle.cc index 0f1791e..8ef2408 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -40,7 +40,7 @@ ssize_t Handle::write(const void *buf, size_t count) throw (IOException) { done = false; full = true; if (nonblock) { - return 0; + throw IOAgain(); } else { sleep(1); } @@ -66,7 +66,7 @@ ssize_t Handle::read(void *buf, size_t count) throw (IOException) { if ((!errno) || (errno = EAGAIN)) { // Avant de déclarer une erreur, on vérifie si ce n'est pas un // problème lié au fait qu'il n'y a plus d'octets. - return 0; + throw IOAgain(); } else { throw IOException(GetName(), IO_READ, count); } -- cgit v1.2.3