summaryrefslogtreecommitdiff
path: root/src/Handle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Handle.cc')
-rw-r--r--src/Handle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Handle.cc b/src/Handle.cc
index 11f64d6..67eb412 100644
--- a/src/Handle.cc
+++ b/src/Handle.cc
@@ -51,7 +51,7 @@ ssize_t Balau::Handle::forceRead(void * _buf, size_t count, Events::BaseEvent *
try {
r = read(buf, count);
}
- catch (EAgain e) {
+ catch (EAgain & e) {
if (evt && evt->gotSignal())
return total;
Task::operationYield(e.getEvent());
@@ -78,7 +78,7 @@ ssize_t Balau::Handle::forceWrite(const void * _buf, size_t count, Events::BaseE
try {
r = write(buf, count);
}
- catch (EAgain e) {
+ catch (EAgain & e) {
if (evt && evt->gotSignal())
return total;
Task::operationYield(e.getEvent());