Demo entry 6699443

c

   

Submitted by ll on Jan 26, 2018 at 04:39
Language: C. Code size: 401 Bytes.

int main(int argc , char *argv[])
{
    /*共享内存初始化*/
    DBShmCliInit();

/*根据参数 本进程第几个实例 */

/* 初始化oss 运行参数  */  
    if (0 != OSSInitConfig(&tOSSCFG))
    {
        return 0; 
    }
    
/* 根据二级进程列表 启动 oss*/  	
    if ( 0 != OSSStart(g_aPAT_httpd,NULL,0))
    {
        return 0 ;
    }
    
/* 无限循环 后台驻留 */    
    while(1)
    { 
        sleep(1000);	
    }
    return 0;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).