Lines Matching refs:pid
66 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */
73 if (pid[0] == '\0') {
74 (void) sprintf(pid, "%*ld\n", SIZEOFPID, (long) getpid());
85 if (onelock(pid, tempfile, name) == -1) {
90 if (onelock(pid, tempfile, name)) {
104 * - use kill(pid,0)
140 DEBUG(4, "kill pid (%ld), ", (long) lpid);
287 * makes a lock on behalf of pid.
289 * pid - process id
297 onelock(pid,tempfile,name)
298 char *pid;
313 if (write(fd, pid, SIZEOFPID+1) != (SIZEOFPID+1)) {