Lines Matching refs:g_prefork_server
2491 static lsapi_prefork_server * g_prefork_server = NULL; variable
2496 if ( g_prefork_server ) in LSAPI_Init_Prefork_Server()
2504 g_prefork_server = (lsapi_prefork_server *)malloc( sizeof( lsapi_prefork_server ) ); in LSAPI_Init_Prefork_Server()
2505 if ( !g_prefork_server ) in LSAPI_Init_Prefork_Server()
2507 memset( g_prefork_server, 0, sizeof( lsapi_prefork_server ) ); in LSAPI_Init_Prefork_Server()
2515 g_prefork_server->m_iAvoidFork = avoidFork; in LSAPI_Init_Prefork_Server()
2516 g_prefork_server->m_iMaxChildren = max_children; in LSAPI_Init_Prefork_Server()
2518 g_prefork_server->m_iExtraChildren = ( avoidFork ) ? 0 : (max_children / 3) ; in LSAPI_Init_Prefork_Server()
2519 g_prefork_server->m_iMaxIdleChildren = ( avoidFork ) ? (max_children + 1) : (max_children / 3); in LSAPI_Init_Prefork_Server()
2520 if ( g_prefork_server->m_iMaxIdleChildren == 0 ) in LSAPI_Init_Prefork_Server()
2521 g_prefork_server->m_iMaxIdleChildren = 1; in LSAPI_Init_Prefork_Server()
2522 g_prefork_server->m_iChildrenMaxIdleTime = 300; in LSAPI_Init_Prefork_Server()
2523 g_prefork_server->m_iMaxReqProcessTime = 3600; in LSAPI_Init_Prefork_Server()
2529 if( g_prefork_server ) in LSAPI_Set_Server_fd()
2530 g_prefork_server->m_fd = fd; in LSAPI_Set_Server_fd()
2575 lsapi_child_status * pStatus = g_prefork_server->m_pChildrenStatus; in find_child_status()
2576 lsapi_child_status * pEnd = g_prefork_server->m_pChildrenStatusEnd; 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()
2618 --g_prefork_server->m_iCurChildren; in lsapi_sigchild()
2622 while(( g_prefork_server->m_pChildrenStatusCur > g_prefork_server->m_pChildrenStatus ) in lsapi_sigchild()
2623 &&( g_prefork_server->m_pChildrenStatusCur[-1].m_pid == 0 )) in lsapi_sigchild()
2624 --g_prefork_server->m_pChildrenStatusCur; in lsapi_sigchild()
2633 …size = (g_prefork_server->m_iMaxChildren + g_prefork_server->m_iExtraChildren ) * sizeof( lsapi_ch… in lsapi_init_children_status()
2642 g_prefork_server->m_pChildrenStatus = (lsapi_child_status *)pBuf; in lsapi_init_children_status()
2643 g_prefork_server->m_pChildrenStatusCur = (lsapi_child_status *)pBuf; in lsapi_init_children_status()
2644 …g_prefork_server->m_pChildrenStatusEnd = (lsapi_child_status *)pBuf + size / sizeof( lsapi_child_s… in lsapi_init_children_status()
2673 lsapi_child_status * pStatus = g_prefork_server->m_pChildrenStatus; in lsapi_check_child_status()
2674 lsapi_child_status * pEnd = g_prefork_server->m_pChildrenStatusCur; in lsapi_check_child_status()
2684 if (( g_prefork_server->m_iCurChildren - dying > g_prefork_server->m_iMaxChildren)|| in lsapi_check_child_status()
2685 ( idle > g_prefork_server->m_iMaxIdleChildren )) in lsapi_check_child_status()
2704 g_prefork_server->m_iMaxReqProcessTime ) in lsapi_check_child_status()
2736 if ( abs( g_prefork_server->m_iCurChildren - count ) > 1 ) in lsapi_check_child_status()
2739 g_prefork_server->m_iCurChildren, count, idle, dying ); in lsapi_check_child_status()
2748 g_prefork_server->m_iMaxReqProcessTime = 10; in lsapi_all_children_must_die()
2749 g_prefork_server->m_iMaxIdleChildren = -1; in lsapi_all_children_must_die()
2752 while( g_prefork_server->m_iCurChildren && (sec < maxWait) ) in lsapi_all_children_must_die()
2758 if ( g_prefork_server->m_iCurChildren != 0 ) in lsapi_all_children_must_die()
2884 g_prefork_server = NULL; in lsapi_prefork_server_accept()
2959 if ( g_prefork_server ) in LSAPI_Prefork_Accept_r()
2961 if ( g_prefork_server->m_fd != -1 ) in LSAPI_Prefork_Accept_r()
2962 if ( lsapi_prefork_server_accept( g_prefork_server, pReq ) == -1 ) in LSAPI_Prefork_Accept_r()
3079 if ( g_prefork_server ) in LSAPI_Set_Max_Children()
3080 g_prefork_server->m_iMaxChildren = maxChildren; in LSAPI_Set_Max_Children()
3085 if (( g_prefork_server )&&( extraChildren >= 0 )) in LSAPI_Set_Extra_Children()
3086 g_prefork_server->m_iExtraChildren = extraChildren; in LSAPI_Set_Extra_Children()
3091 if (( g_prefork_server )&&( secs > 0 )) in LSAPI_Set_Max_Process_Time()
3092 g_prefork_server->m_iMaxReqProcessTime = secs; in LSAPI_Set_Max_Process_Time()
3098 if (( g_prefork_server )&&( maxIdleChld > 0 )) in LSAPI_Set_Max_Idle_Children()
3099 g_prefork_server->m_iMaxIdleChildren = maxIdleChld; in LSAPI_Set_Max_Idle_Children()
3104 if ( g_prefork_server ) in LSAPI_Set_Server_Max_Idle_Secs()
3105 g_prefork_server->m_iServerMaxIdle = serverMaxIdle; in LSAPI_Set_Server_Max_Idle_Secs()
3177 if ( g_prefork_server ) in lsapi_initSuEXEC()
3179 if ( g_prefork_server->m_iMaxChildren < 100 ) in lsapi_initSuEXEC()
3180 g_prefork_server->m_iMaxChildren = 100; in lsapi_initSuEXEC()
3181 if ( g_prefork_server->m_iExtraChildren < 1000 ) in lsapi_initSuEXEC()
3182 g_prefork_server->m_iExtraChildren = 1000; in lsapi_initSuEXEC()