Replace some functions with thread safe version.
[platform/core/security/key-manager.git] / src / manager / common / descriptor-set.cpp
index 9312c73..8e36bed 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include "descriptor-set.h"
+#include <dpl/errno_string.h>
 #include <dpl/log/log.h>
 #include <string.h>
 #include <unistd.h>
@@ -69,7 +70,7 @@ void DescriptorSet::wait(int timeout_ms) {
         ThrowMsg(Timeout, "Poll timeout");
     } else if (ret < 0) {
         int err = errno;
-        ThrowMsg(InternalError, "Poll failed " << strerror(err));
+        ThrowMsg(InternalError, "Poll failed " << GetErrnoString(err));
     }
 
     notify(ret);