diff options
author | Pixel <Pixel> | 2001-11-12 19:49:16 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-12 19:49:16 +0000 |
commit | e57c35f00e5eba0ee5199997238cf3179a89c4d2 (patch) | |
tree | 6e734a152ec360c42b72e01948eb3e444a77f8bb /lib/Handle.cc | |
parent | 709543dec3eaa07f7d2d7da2157d1f9159bad5d8 (diff) |
Plop
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 da9870f..7ad7cc6 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -40,7 +40,7 @@ ssize_t Handle::write(const void *buf, size_t count) throw (GeneralException) { done = false; full = true; if (nonblock) { - throw TaskSwitch(); + throw IOAgain(); } else { sleep(1); } @@ -66,7 +66,7 @@ ssize_t Handle::read(void *buf, size_t count) throw (GeneralException) { 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. - throw TaskSwitch(); + throw IOAgain(); } else { throw IOException(GetName(), IO_READ, count); } |