Home
last modified time | relevance | path

Searched refs:pidFile (Results 1 - 3 of 3) sorted by relevance

/base/sensors/sensor/test/unittest/common/src/
H A Dsystem_info.cpp56 struct dirent *pidFile; in GetTaskPidFile() local
57 while ((pidFile = ::readdir(dir)) != nullptr) { in GetTaskPidFile()
58 if ((::strcmp(pidFile->d_name, ".") == 0) || (::strcmp(pidFile->d_name, "..") == 0)) { in GetTaskPidFile()
61 if (pidFile->d_type != DT_DIR) { in GetTaskPidFile()
64 const std::string path = procPath + "/" + pidFile->d_name + "/status"; in GetTaskPidFile()
/base/hiviewdfx/hiview/core/
H A Dhiview_platform.cpp828 std::string pidFile = defaultWorkDir_ + "/" + std::string(HIVIEW_PID_FILE_NAME); in ExitHiviewIfNeed() local
829 if (!FileUtil::FileExists(pidFile)) { in ExitHiviewIfNeed()
834 FileUtil::LoadStringFromFile(pidFile, content); in ExitHiviewIfNeed()
845 FileUtil::SaveStringToFile(pidFile, std::to_string(selfPid)); in ExitHiviewIfNeed()
/base/print/print_fwk/services/print_service/src/
H A Dprint_cups_client.cpp205 std::string pidFile = CUPS_RUN_DIR + "/cupsd.pid"; in StartCupsdService() local
207 if (stat(pidFile.c_str(), &sb) != 0) { in StartCupsdService()
208 PRINT_HILOGI("stat pidFile failed."); in StartCupsdService()
212 if (realpath(pidFile.c_str(), realPidFile) == nullptr) { in StartCupsdService()
218 PRINT_HILOGE("Open pidFile error!"); in StartCupsdService()
224 PRINT_HILOGE("Read pidFile error!"); in StartCupsdService()

Completed in 5 milliseconds