Searched refs:pidFile (Results 1 – 2 of 2) sorted by relevance
54 struct dirent* pidFile; in GetTaskPidFile() local55 while ((pidFile = ::readdir(dir)) != nullptr) { in GetTaskPidFile()56 if ((::strcmp(pidFile->d_name, ".") == 0) || (::strcmp(pidFile->d_name, "..") == 0)) { in GetTaskPidFile()59 if (pidFile->d_type != DT_DIR) { in GetTaskPidFile()62 const std::string path = procPath + "/" + pidFile->d_name + "/status"; in GetTaskPidFile()
779 std::string pidFile = defaultWorkDir_ + "/" + std::string(HIVIEW_PID_FILE_NAME); in ExitHiviewIfNeed() local780 if (!FileUtil::FileExists(pidFile)) { in ExitHiviewIfNeed()785 FileUtil::LoadStringFromFile(pidFile, content); in ExitHiviewIfNeed()796 FileUtil::SaveStringToFile(pidFile, std::to_string(selfPid)); in ExitHiviewIfNeed()