Lines Matching refs:pmonitor
241 struct monitor *pmonitor = NULL; variable
362 if (use_privsep && pmonitor != NULL && pmonitor->m_pid > 0) in grace_alarm_handler()
363 kill(pmonitor->m_pid, SIGALRM); in grace_alarm_handler()
664 pmonitor = monitor_init(); in privsep_preauth()
666 pmonitor->m_pkex = &active_state->kex; in privsep_preauth()
669 box = ssh_sandbox_init(pmonitor); in privsep_preauth()
676 pmonitor->m_pid = pid; in privsep_preauth()
687 monitor_child_preauth(authctxt, pmonitor); in privsep_preauth()
690 monitor_sync(pmonitor); in privsep_preauth()
696 pmonitor->m_pid = -1; in privsep_preauth()
700 pmonitor->m_pid = -1; in privsep_preauth()
713 close(pmonitor->m_sendfd); in privsep_preauth()
714 close(pmonitor->m_log_recvfd); in privsep_preauth()
717 set_log_handler(mm_log_handler, pmonitor); in privsep_preauth()
746 monitor_reinit(pmonitor);
748 pmonitor->m_pid = fork();
749 if (pmonitor->m_pid == -1)
751 else if (pmonitor->m_pid != 0) {
752 verbose("User child is on pid %ld", (long)pmonitor->m_pid);
754 monitor_child_postauth(pmonitor);
762 close(pmonitor->m_sendfd);
763 pmonitor->m_sendfd = -1;
782 monitor_apply_keystate(pmonitor);
2220 mm_send_keystate(pmonitor);
2622 pmonitor != NULL && pmonitor->m_pid > 1) {
2623 debug("Killing privsep child %d", pmonitor->m_pid);
2624 if (kill(pmonitor->m_pid, SIGKILL) != 0 &&
2627 pmonitor->m_pid, strerror(errno));