From 57bba0c632bf07cdce7810330dffdfa27ae14972 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 20 Jul 2006 16:48:44 +0000 Subject: 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 --- src/users.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/users.cpp') 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? */ -- cgit v1.2.3