コード例 #1
0
ファイル: main.c プロジェクト: miksago/icecast
/* this is the heart of the beast */
static void _server_proc(void)
{
    int i;

    connection_accept_loop();

    for(i=0; i < MAX_LISTEN_SOCKETS; i++)
        sock_close(global.serversock[i]);
}
コード例 #2
0
ファイル: main.c プロジェクト: kitsune-dsu/kitsune-icecast
/* this is the heart of the beast */
static void _server_proc(void)
{
    int i;

    if (background)
    {
        fclose (stdin);
        fclose (stdout);
        fclose (stderr);
    }
    connection_accept_loop();

    for(i=0; i < MAX_LISTEN_SOCKETS; i++)
        sock_close(global.serversock[i]);
}