|
|
|
@ -39,7 +39,7 @@ int thread_sck;
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
|
int DEFAULT_CC
|
|
|
|
|
thread_sighandler_start()
|
|
|
|
|
thread_sighandler_start(void)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
sigset_t sigmask;
|
|
|
|
@ -65,7 +65,7 @@ thread_sighandler_start()
|
|
|
|
|
ret = pthread_create(&thread_sighandler, NULL, sig_handler_thread, "");
|
|
|
|
|
pthread_detach(thread_sighandler);
|
|
|
|
|
|
|
|
|
|
if (ret==0)
|
|
|
|
|
if (ret == 0)
|
|
|
|
|
{
|
|
|
|
|
log_message(LOG_LEVEL_INFO, "signal handler thread started successfully");
|
|
|
|
|
return 0;
|
|
|
|
@ -93,7 +93,7 @@ thread_sighandler_start()
|
|
|
|
|
#ifdef JUST_TO_AVOID_COMPILER_ERRORS
|
|
|
|
|
/******************************************************************************/
|
|
|
|
|
int DEFAULT_CC
|
|
|
|
|
thread_session_update_start()
|
|
|
|
|
thread_session_update_start(void)
|
|
|
|
|
{
|
|
|
|
|
int ret;
|
|
|
|
|
//starts the session update thread
|
|
|
|
@ -146,7 +146,7 @@ thread_scp_start(int skt)
|
|
|
|
|
//ret = pthread_create(&th, NULL, scp_process_start, (void*) (&thread_sck));
|
|
|
|
|
pthread_detach(th);
|
|
|
|
|
|
|
|
|
|
if (ret==0)
|
|
|
|
|
if (ret == 0)
|
|
|
|
|
{
|
|
|
|
|
log_message(LOG_LEVEL_INFO, "scp thread on sck %d started successfully", skt);
|
|
|
|
|
return 0;
|
|
|
|
|