diff options
author | Pixel <Pixel> | 2001-10-30 17:38:54 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-10-30 17:38:54 +0000 |
commit | 57633137f749b0098eaf703f49ed00c96128966d (patch) | |
tree | f7e55be48d4724d44e5ed2362cf836162e866d05 /lib/Handle.cc | |
parent | e5057005049b11af44cb804118f95370f03ab32c (diff) |
Huge work on Tasking System.
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r-- | lib/Handle.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |