X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=modules%2Fsocket%2Fsrc%2Funix_socket.cpp;h=3dd905c8d13c6d4bcfff159c40e9761709817b9a;hb=refs%2Fheads%2Ftizen_2.0;hp=f185da3771623e10a43a4be27240ab049f4c3bc4;hpb=45bf3bfbb061b87511ece6f50b1aa6c803844a65;p=framework%2Fweb%2Fwrt-commons.git diff --git a/modules/socket/src/unix_socket.cpp b/modules/socket/src/unix_socket.cpp index f185da3..3dd905c 100644 --- a/modules/socket/src/unix_socket.cpp +++ b/modules/socket/src/unix_socket.cpp @@ -19,6 +19,7 @@ * @version 1.0 * @brief This file is the implementation file of unix socket */ +#include #include #include #include @@ -29,6 +30,7 @@ #include #include #include +#include namespace DPL { @@ -101,8 +103,9 @@ void UnixSocket::Bind(const Address &address) GenericSocket::Bind(address); // Always set proper permissions to the socket file - chmod(address.GetAddress().c_str(), 0777); + if(chmod(address.GetAddress().c_str(), 0777)<0){ + LogError("Error setting permissions to the socket file. Errno " << strerror(errno)); + } } - } } // namespace DPL