X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FUN%2FUNSocketProtocol.cc;h=9a4075cace48b99141d103451852c4afdd6c00d4;hb=a6069ae6d8b265abc2f156d1ea0e12adca3771d5;hp=7cc6b5f1b6cc1b79013f355fcc695678ac811d44;hpb=25fe79f266e7583750d8e761abec4022d87972b8;p=senf.git diff --git a/Socket/Protocols/UN/UNSocketProtocol.cc b/Socket/Protocols/UN/UNSocketProtocol.cc index 7cc6b5f..9a4075c 100644 --- a/Socket/Protocols/UN/UNSocketProtocol.cc +++ b/Socket/Protocols/UN/UNSocketProtocol.cc @@ -31,6 +31,7 @@ #include #include #include // for SIOCINQ / SIOCOUTQ +#include "../../../Utils/Logger/SenfLog.hh" #include "../../../Utils/Exception.hh" //#include "UNSocketProtocol.mpp" @@ -41,7 +42,7 @@ prefix_ unsigned senf::UNSocketProtocol::available() { int n; if (::ioctl(fd(),SIOCINQ,&n) < 0) - throw SystemException(); + SENF_THROW_SYSTEM_EXCEPTION("Could not call available() on UNSocket."); return n; } @@ -52,7 +53,6 @@ prefix_ bool senf::UNSocketProtocol::eof() } prefix_ void senf::UNSocketProtocol::close() - const { check_and_unlink(); @@ -76,6 +76,7 @@ prefix_ void senf::UNSocketProtocol::check_and_unlink() ::unlink(una.path().c_str()); } catch (SystemException & e) { + SENF_LOG(("UNSocketProtocol::check_and_unlink() failed; [" << e.errorString() << "].")); } }