Lines Matching refs:pid
59 ** create 'temp' and store our pid in it
90 #define PIDFILE_NAME "pid"
112 /* check to see if there is a pid file in it */
131 D( "no pid file in '%s', assuming stale directory", lock->lock );
144 D( "could not read pid file '%s'", lock->temp );
151 /* PID 0 is the IDLE process, and 0 is returned in case of invalid input */
189 /* write our PID into the pid file */
211 D( "could not write PID to '%s'\n", lock->temp );
223 char pid[8];
235 sprintf( pid, "%d", getpid() );
236 ret = write( temp_fd, pid, strlen(pid)+1 );
307 /* if there is a PID, check that it is still alive */
317 /* no pid, stale if the file is older than 1 minute */