Lines Matching defs:pid
52 #define SETCONSOLEPID "/etc/consadm.pid"
570 pid_t pid;
579 * remove /etc/consadm.pid
584 if ((pid = fork()) == (pid_t)0) {
598 } else if (pid == -1)
603 /* write daemon pid to file */
604 (void) fprintf(fp, "%d\n", (int)pid);
618 int pid;
624 if (fscanf(fp, "%d\n", &pid) <= 0) {
634 if (pid == 0 || pid == 1 || pid == 2 || pid == 3) {
640 * /etc/consadm.pid
642 (void) kill((pid_t)pid, SIGTERM);