Lines Matching refs:pid
48 pid_t pid;
53 pid_t pid; /* main nscd pid */
76 static void cleanup_thread_by_pid(pid_t pid);
116 waiting_list_add(chg_info_t *info, pid_t pid, thread_t tid,
126 logit("waiting_list_add: No memory. pid %ld tid %d\n",
127 pid, tid);
131 wl->pid = pid;
199 * Set flag by pid so it can be cleaned up.
202 waiting_list_set_cleanup(chg_info_t *info, pid_t pid)
207 if (wl->pid == pid) {
237 * The static global variable main_nscd keeps record of pid, tid and some flags.
238 * If the thread is door_return(), main_nscd.pid, main_nscd.tid are set to 0.
239 * When the call is START op, it checks if main_nscd.pid is 0. If it is, it
271 if (chg_main_nscd.pid != 0) {
272 if (nscd_pid != chg_main_nscd.pid) {
287 chg_main_nscd.pid);
292 * Same nscd pid can only send door call
294 * return change data. If it's the same pid
314 * Replace pid and tid and set the flag.
317 chg_main_nscd.pid = nscd_pid;
376 * Reset pid, tid and flag, send wakeup signal.
379 chg_main_nscd.pid = 0;
514 cleanup_threads(chg_info_t *chg, pid_t pid, cleanup_type_t type)
518 waiting_list_set_cleanup(chg, pid);
535 pid_t pid;
541 pid = 0;
545 pid = op->pid;
551 cleanup_threads(&chg, pid, type);
563 * The door server thead which has the door client pid will be marked
564 * as to be clean up. If pid is 0, no marking and just clean up all.
567 cleanup_thread_by_pid(pid_t pid)
574 op->pid = pid;
575 /* clean up all if pid is 0 */
576 if (pid == 0)
585 pid);
590 * Output a psinfo of an nscd process with process id pid
596 get_nscd_psinfo(pid_t pid, psinfo_t *info)
603 if (snprintf(fname, MAXPATHLEN, "/proc/%d/psinfo", pid) > 0) {
621 is_peruser_nscd(pid_t pid)
626 if (get_nscd_psinfo(pid, &pinfo)) {
641 * output door client's pid.
648 pid_t pid;
657 pid = *pidp = ucred_getpid(uc);
659 if ((euid == 0 && is_called_from_nscd(pid)) ||
660 is_peruser_nscd(pid)) {
662 logit("ldap_cachemgr received %s call from pid %ld, "
663 "uid %u, euid %u\n", dc_str, pid,
668 logit("%s call failed(cred): caller pid %ld, uid %u, "
669 "euid %u\n", dc_str, pid,