Lines Matching refs:pStatus

2575     lsapi_child_status * pStatus = g_prefork_server->m_pChildrenStatus;  in find_child_status()  local
2577 while( pStatus < pEnd ) in find_child_status()
2579 if ( pStatus->m_pid == pid ) in find_child_status()
2581 if ( pStatus + 1 > g_prefork_server->m_pChildrenStatusCur ) in find_child_status()
2582 g_prefork_server->m_pChildrenStatusCur = pStatus + 1; in find_child_status()
2583 return pStatus; in find_child_status()
2585 ++pStatus; in find_child_status()
2648 static void dump_debug_info( lsapi_child_status * pStatus, long tmCur ) in dump_debug_info() argument
2659 ctime(&tmCur), getpid(), pStatus->m_pid, pStatus->m_iReqCounter, in dump_debug_info()
2660 … tmCur - pStatus->m_tmReqBegin, tmCur - pStatus->m_tmLastCheckPoint, tmCur - pStatus->m_tmStart ); in dump_debug_info()
2661 …t height 0\" -ex \"bt\" >&2;PATH=$PATH:/usr/sbin lsof -p %d >&2", pStatus->m_pid, pStatus->m_pid ); in dump_debug_info()
2673 lsapi_child_status * pStatus = g_prefork_server->m_pChildrenStatus; in lsapi_check_child_status() local
2675 while( pStatus < pEnd ) in lsapi_check_child_status()
2678 if ( pStatus->m_pid != 0 ) in lsapi_check_child_status()
2681 if ( !pStatus->m_inProcess ) in lsapi_check_child_status()
2687 ++pStatus->m_iKillSent; in lsapi_check_child_status()
2692 … if (( s_max_idle_secs> 0)&&(tmCur - pStatus->m_tmWaitBegin > s_max_idle_secs + 5 )) in lsapi_check_child_status()
2694 ++pStatus->m_iKillSent; in lsapi_check_child_status()
2703 if ( tmCur - pStatus->m_tmReqBegin > in lsapi_check_child_status()
2706 if (( ( pStatus->m_iKillSent % 5 ) == 0 )&&( s_dump_debug_info )) in lsapi_check_child_status()
2707 dump_debug_info( pStatus, tmCur ); in lsapi_check_child_status()
2708 if ( pStatus->m_iKillSent > 5 ) in lsapi_check_child_status()
2711 … fprintf( stderr, "Force killing runaway process PID: %d with SIGKILL\n", pStatus->m_pid ); in lsapi_check_child_status()
2716 … fprintf( stderr, "Killing runaway process PID: %d with SIGTERM\n", pStatus->m_pid ); in lsapi_check_child_status()
2722 if (( kill( pStatus->m_pid, tobekilled ) == -1 )&&( errno == ESRCH )) in lsapi_check_child_status()
2724 pStatus->m_pid = 0; in lsapi_check_child_status()
2729 ++pStatus->m_iKillSent; in lsapi_check_child_status()
2734 ++pStatus; in lsapi_check_child_status()