Lines Matching defs:pid
56 int32_t UDSServer::GetClientFd(int32_t pid) const
58 auto it = idxPidMap_.find(pid);
60 if (pid_ != pid) {
61 pid_ = pid;
62 MMI_HILOGE("Not found pid:%{public}d", pid);
102 const int32_t moduleType, const int32_t uid, const int32_t pid,
129 sess = std::make_shared<UDSSession>(programName, moduleType, serverFd, uid, pid);
131 MMI_HILOGE("make_shared fail. programName:%{public}s, pid:%{public}d, errCode:%{public}d",
132 programName.c_str(), pid, MAKE_SHARED_FAIL);
347 SessionPtr UDSServer::GetSessionByPid(int32_t pid) const
349 int32_t fd = GetClientFd(pid);
351 if (pid_ != pid) {
352 pid_ = pid;
353 MMI_HILOGE("Session not found. pid:%{public}d", pid);
363 MMI_HILOGI("pid:%{public}d, fd:%{public}d", ses->GetPid(), ses->GetFd());
369 auto pid = ses->GetPid();
370 if (pid <= 0) {
374 idxPidMap_[pid] = fd;
393 auto pid = GetClientPid(fd);
394 MMI_HILOGI("pid:%{public}d", pid);
395 if (pid > 0) {
396 idxPidMap_.erase(pid);