Home
last modified time | relevance | path

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

/system/netd/server/
DProcess.h31 void writePidFile(const std::string& pidFile);
32 void removePidFile(const std::string& pidFile);
37 ScopedPidFile(const std::string& filename) : pidFile(filename) { in ScopedPidFile()
38 removePidFile(pidFile); in ScopedPidFile()
39 writePidFile(pidFile); in ScopedPidFile()
45 removePidFile(pidFile); in ~ScopedPidFile()
51 const std::string pidFile; variable
DProcess.cpp92 void writePidFile(const std::string& pidFile) { in writePidFile() argument
95 Fd pidFd = open(pidFile.c_str(), PID_FILE_FLAGS, PID_FILE_MODE); in writePidFile()
102 auto rmFile = makeCleanup([pidFile] { removePidFile(pidFile); }); in writePidFile()
106 ALOGE("failed to set mode 0%o on %s (%s)", PID_FILE_MODE, pidFile.c_str(), strerror(errno)); in writePidFile()
120 void removePidFile(const std::string& pidFile) { in removePidFile() argument
121 unlink(pidFile.c_str()); in removePidFile()
Dmain.cpp180 android::net::process::ScopedPidFile pidFile(PID_FILE_PATH); in main() local