summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-20 16:48:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-20 16:48:44 +0000
commit57bba0c632bf07cdce7810330dffdfa27ae14972 (patch)
tree76e3933845ab49250fe889306c6a394a705d54d5 /src/users.cpp
parentcd146649029d2d6d2a5edd804d2e6a31e13593bc (diff)
Make threaded dns stable by placing some mutexes around some stl stuff (this really needs lots of testing now)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4460 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index bf99c1fc8..689ed3bf4 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -219,6 +219,12 @@ userrec::~userrec()
ucrec* x = (ucrec*)*n;
delete x;
}
+#ifdef THREADED_DNS
+ if ((!dns_done) && (registered >= 3))
+ {
+ pthread_kill(this->dnsthread, SIGTERM);
+ }
+#endif
}
/* XXX - minor point, other *Host functions return a char *, this one creates it. Might be nice to be consistant? */