Searched refs:pidfile_fd (Results 1 – 2 of 2) sorted by relevance
99 int pidfile_fd = -1; in filelock_lock() local120 pidfile_fd = open( lock->temp, O_RDONLY ); in filelock_lock()122 if (pidfile_fd >= 0) in filelock_lock()130 if (pidfile_fd < 0) { in filelock_lock()142 len = read( pidfile_fd, buf, sizeof(buf)-1 ); in filelock_lock()145 close( pidfile_fd ); in filelock_lock()155 close( pidfile_fd ); in filelock_lock()190 pidfile_fd = open( lock->temp, O_WRONLY | O_CREAT | O_TRUNC ); in filelock_lock()191 if (pidfile_fd < 0) { in filelock_lock()197 pidfile_fd = open( lock->temp, O_WRONLY | O_CREAT | O_TRUNC ); in filelock_lock()[all …]
157 int pidfile_fd; in main() local207 pidfile_fd = OpenPidFile(cl.GetSwitchValueASCII("pidfile").c_str()); in main()209 pidfile_fd = OpenPidFile(PIDFILE); in main()420 close(pidfile_fd); in main()