Killing thread



I have this problem. I've got thread (server which waits for incomming
data) and I would like to kill this thread but I don't know how :( 

This thread function looks like

gpointer server_func(gpointer data) {
        
        if (select_server_start() != 0) {
                perror("Server start");
                server_kick = TRUE;
        }
}

and there's a while loop inside the server_start function. How can I
kill this thread and any suggestion for doing this better?

RAT




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]