diff options
| author | jsorg71 <jsorg71> | 2006-08-24 05:58:10 +0000 |
|---|---|---|
| committer | jsorg71 <jsorg71> | 2006-08-24 05:58:10 +0000 |
| commit | 8c73bc31cb2162b53cf7640afe0e4af7a252c93d (patch) | |
| tree | 8bd392fe6376c6196fb6789909f2218fccfa58c3 /sesman/thread.c | |
| parent | 56039620612a933a1152601660c41cd04e9b9c4d (diff) | |
| download | xrdp-proprietary-8c73bc31cb2162b53cf7640afe0e4af7a252c93d.tar.gz xrdp-proprietary-8c73bc31cb2162b53cf7640afe0e4af7a252c93d.zip | |
minor fixes and indent
Diffstat (limited to 'sesman/thread.c')
| -rw-r--r-- | sesman/thread.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sesman/thread.c b/sesman/thread.c index 46960b7a..0f6f3c8c 100644 --- a/sesman/thread.c +++ b/sesman/thread.c @@ -39,7 +39,7 @@ int thread_sck; /******************************************************************************/ int DEFAULT_CC -thread_sighandler_start() +thread_sighandler_start(void) { int ret; sigset_t sigmask; @@ -61,11 +61,11 @@ thread_sighandler_start() pthread_sigmask(SIG_UNBLOCK, &waitmask, NULL); log_message(LOG_LEVEL_INFO,"starting signal handling thread..."); - + 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 @@ -140,13 +140,13 @@ thread_scp_start(int skt) /* blocking the use of thread_skt */ lock_socket_acquire(); thread_sck=skt; - + /* start a thread that processes a connection */ ret = pthread_create(&th, NULL, scp_process_start, ""); //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; |
