Lines Matching defs:pid
55 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */
58 if (pid[0] == '\0') {
62 (void) sprintf(pid, "%*ld\n", SIZEOFPID, (long)getpid());
67 if (onelock(pid, tempfile, name) == -1) {
72 if (onelock(pid, tempfile, name)) {
85 * - use kill(pid, 0)
123 DEBUG(4, "kill pid (%ld), ", (long)lpid);
186 * makes a lock on behalf of pid.
188 * pid - process id
196 onelock(char *pid, char *tempfile, char *name)
211 if (write(fd, pid, SIZEOFPID+1) != (SIZEOFPID+1)) {