Detach main thread.

This commit is contained in:
Michael Jumper 2011-03-19 00:59:14 -07:00
parent a6bfd481c8
commit 1b326b9cfb

View File

@ -265,6 +265,8 @@ int main(int argc, char* argv[]) {
GUAC_LOG_ERROR("Could not create client thread: %s", lasterror()); GUAC_LOG_ERROR("Could not create client thread: %s", lasterror());
return 3; return 3;
} }
pthread_detach(thread);
#elif __MINGW32__ #elif __MINGW32__
if (_beginthread(start_client_thread, 0, (void*) data) == -1L) { if (_beginthread(start_client_thread, 0, (void*) data) == -1L) {
GUAC_LOG_ERROR("Could not create client thread: %s", lasterror()); GUAC_LOG_ERROR("Could not create client thread: %s", lasterror());