public std::enable_shared_from_this<ClientChannel> {
public:
ClientChannel(pid_t pid, uid_t uid, bool once = false)
- : ClientSocket(), pid_(pid), uid_(uid) {
+ : ClientSocket(), pid_(pid), uid_(uid), once_(once) {
+ _W("pid(%d), uid(%u), once(%d), fd(%d)", pid_, uid_, once_, GetFd());
auto* channel = g_io_channel_unix_new(GetFd());
if (channel == nullptr) {
_E("g_io_channel_unix_new() is failed");
}
~ClientChannel() {
+ _W("pid(%d), uid(%u), once(%d), fd(%d)", pid_, uid_, once_, GetFd());
if (channel_)
g_io_channel_unref(channel_);
if (ret != 0)
res = -ECOMM;
+ _W("pid(%d), result(%d)", handle->GetPid(), ret);
if (!handle->IsEmpty()) {
auto result_cb = handle->Pop();
if (result_cb != nullptr)