]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_nick.cpp
Move this to m_mysql.cpp - dont even bother reading this yet its unchanged from m_sql
[user/henk/code/inspircd.git] / src / cmd_nick.cpp
index 4db2a53bb923402e3f6f6bef715c241dda3afd6e..17dfa626e82a8057df6ea0e61d11437917e03d3c 100644 (file)
@@ -151,7 +151,10 @@ void cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
                {
 #ifdef THREADED_DNS
                        // initialize their dns lookup thread
-                       if (pthread_create(&user->dnsthread, NULL, dns_task, (void *)user) != 0)
+                       pthread_attr_t attribs;
+                       pthread_attr_init(&attribs);
+                       pthread_attr_setdetachstate(&attribs, PTHREAD_CREATE_DETACHED);
+                       if (pthread_create(&user->dnsthread, &attribs, dns_task, (void *)user) != 0)
                        {
                                log(DEBUG,"Failed to create DNS lookup thread for user %s: %s",user->nick, strerror(errno));
                        }