Lines Matching refs:pmonitor
224 struct monitor *pmonitor = NULL; variable
343 if (use_privsep && pmonitor != NULL && pmonitor->m_pid > 0) in grace_alarm_handler()
344 kill(pmonitor->m_pid, SIGALRM); in grace_alarm_handler()
570 pmonitor = monitor_init(); in privsep_preauth()
572 pmonitor->m_pkex = &active_state->kex; in privsep_preauth()
575 box = ssh_sandbox_init(pmonitor); in privsep_preauth()
582 pmonitor->m_pid = pid; in privsep_preauth()
593 monitor_child_preauth(authctxt, pmonitor); in privsep_preauth()
599 pmonitor->m_pid = -1; in privsep_preauth()
603 pmonitor->m_pid = -1; in privsep_preauth()
616 close(pmonitor->m_sendfd); in privsep_preauth()
617 close(pmonitor->m_log_recvfd); in privsep_preauth()
620 set_log_handler(mm_log_handler, pmonitor); in privsep_preauth()
645 monitor_reinit(pmonitor);
647 pmonitor->m_pid = fork();
648 if (pmonitor->m_pid == -1)
650 else if (pmonitor->m_pid != 0) {
651 verbose("User child is on pid %ld", (long)pmonitor->m_pid);
653 monitor_child_postauth(pmonitor);
661 close(pmonitor->m_sendfd);
662 pmonitor->m_sendfd = -1;
674 monitor_apply_keystate(pmonitor);
2051 mm_send_keystate(pmonitor);
2232 pmonitor != NULL && pmonitor->m_pid > 1) {
2233 debug("Killing privsep child %d", pmonitor->m_pid);
2234 if (kill(pmonitor->m_pid, SIGKILL) != 0 &&
2237 pmonitor->m_pid, strerror(errno));