bool complete_ (false);
try {
if (event != senf::Scheduler::EV_WRITE)
- throw senf::SystemException(EPIPE);
+ throwErrno(EPIPE);
offset_ = handle.write(std::make_pair(offset_,data_.end()));
if (offset_ == data_.end()) {
data_.erase();
}
}
catch (senf::SystemException const & ex) {
- errno_ = ex.err;
+ errno_ = ex.code();
done();
return;
}