Home
last modified time | relevance | path

Searched refs:pidFile (Results 1 – 2 of 2) sorted by relevance

/base/sensors/sensor/test/unittest/common/src/
Dsystem_info.cpp54 struct dirent* pidFile; in GetTaskPidFile() local
55 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()
/base/hiviewdfx/hiview/core/
Dhiview_platform.cpp779 std::string pidFile = defaultWorkDir_ + "/" + std::string(HIVIEW_PID_FILE_NAME); in ExitHiviewIfNeed() local
780 if (!FileUtil::FileExists(pidFile)) { in ExitHiviewIfNeed()
785 FileUtil::LoadStringFromFile(pidFile, content); in ExitHiviewIfNeed()
796 FileUtil::SaveStringToFile(pidFile, std::to_string(selfPid)); in ExitHiviewIfNeed()