dsniff/daemon_tmpl.c
void init(void *data)
{
    init_signals();
	load_stat();

    if( pthread_create(&pthread_cmd_pipe, NULL, cmd_pipe_thread, NULL) != 0 )
       daemon_error_exit("Can't create thread_cmd_pipe: %m\n");

}
//create a thread for command pipe and load stored data
create a thread for command pipe and load stored data
create a thread for command pipe and load stored data
void init(void *data)
{
    init_signals();
	load_stat();
    if( pthread_create(&pthread_cmd_pipe, NULL, cmd_pipe_thread, NULL) != 0 )
       daemon_error_exit("Can't create thread_cmd_pipe: %m\n");
}
void init ( void * data ) { init_signals ( ) ; load_stat ( ) ; if ( pthread_create ( & pthread_cmd_pipe , NULL , cmd_pipe_thread , NULL ) != 0 ) daemon_error_exit ( " \n " ) ; }
create a thread for command pipe and load stored data
create a thread for command pipe and load stored data