Lines Matching refs:pmonitor
240 struct monitor *pmonitor = NULL; variable
361 if (use_privsep && pmonitor != NULL && pmonitor->m_pid > 0) in grace_alarm_handler()
362 kill(pmonitor->m_pid, SIGALRM); in grace_alarm_handler()
661 pmonitor = monitor_init(); in privsep_preauth()
663 pmonitor->m_pkex = &active_state->kex; in privsep_preauth()
666 box = ssh_sandbox_init(pmonitor); in privsep_preauth()
673 pmonitor->m_pid = pid; in privsep_preauth()
684 monitor_child_preauth(authctxt, pmonitor); in privsep_preauth()
687 monitor_sync(pmonitor); in privsep_preauth()
693 pmonitor->m_pid = -1; in privsep_preauth()
697 pmonitor->m_pid = -1; in privsep_preauth()
710 close(pmonitor->m_sendfd); in privsep_preauth()
711 close(pmonitor->m_log_recvfd); in privsep_preauth()
714 set_log_handler(mm_log_handler, pmonitor); in privsep_preauth()
743 monitor_reinit(pmonitor);
745 pmonitor->m_pid = fork();
746 if (pmonitor->m_pid == -1)
748 else if (pmonitor->m_pid != 0) {
749 verbose("User child is on pid %ld", (long)pmonitor->m_pid);
751 monitor_child_postauth(pmonitor);
759 close(pmonitor->m_sendfd);
760 pmonitor->m_sendfd = -1;
777 monitor_apply_keystate(pmonitor);
2201 mm_send_keystate(pmonitor);
2614 pmonitor != NULL && pmonitor->m_pid > 1) {
2615 debug("Killing privsep child %d", pmonitor->m_pid);
2616 if (kill(pmonitor->m_pid, SIGKILL) != 0 &&
2619 pmonitor->m_pid, strerror(errno));