Searched refs:pidfile_fd (Results 1 – 1 of 1) 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 …]