Lines Matching refs:pid
65 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */
72 if (pid[0] == '\0') {
73 (void) sprintf(pid, "%*ld\n", SIZEOFPID, (long) getpid());
84 if (onelock(pid, tempfile, name) == -1) {
89 if (onelock(pid, tempfile, name)) {
103 * - use kill(pid,0)
139 DEBUG(4, "kill pid (%ld), ", (long) lpid);
286 * makes a lock on behalf of pid.
288 * pid - process id
296 onelock(pid,tempfile,name)
297 char *pid;
312 if (write(fd, pid, SIZEOFPID+1) != (SIZEOFPID+1)) {