Home | History | Annotate | Download | only in utils

Lines Matching refs:pidfile_fd

99     int  pidfile_fd = -1;
120 pidfile_fd = open( lock->temp, O_RDONLY );
122 if (pidfile_fd >= 0)
130 if (pidfile_fd < 0) {
142 len = read( pidfile_fd, buf, sizeof(buf)-1 );
145 close( pidfile_fd );
155 close( pidfile_fd );
190 pidfile_fd = open( lock->temp, O_WRONLY | O_CREAT | O_TRUNC );
191 if (pidfile_fd < 0) {
197 pidfile_fd = open( lock->temp, O_WRONLY | O_CREAT | O_TRUNC );
199 if (pidfile_fd < 0) {
208 ret = write( pidfile_fd, buf, strlen(buf) );
209 close(pidfile_fd);