From 2e8bcaa0a9e2611ff12ec08bab60f48b4c34edb0 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 19 Mar 2011 00:59:14 -0700 Subject: [PATCH] Detach main thread. --- src/daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/daemon.c b/src/daemon.c index 3029fc5..4364eee 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -265,6 +265,8 @@ int main(int argc, char* argv[]) { GUAC_LOG_ERROR("Could not create client thread: %s", lasterror()); return 3; } + + pthread_detach(thread); #elif __MINGW32__ if (_beginthread(start_client_thread, 0, (void*) data) == -1L) { GUAC_LOG_ERROR("Could not create client thread: %s", lasterror()); -- 1.7.10.4