diff options
| author | 2006-07-20 16:48:44 +0000 | |
|---|---|---|
| committer | 2006-07-20 16:48:44 +0000 | |
| commit | 57bba0c632bf07cdce7810330dffdfa27ae14972 (patch) | |
| tree | 76e3933845ab49250fe889306c6a394a705d54d5 /src/users.cpp | |
| parent | Threaded dns stuff - im going to try and make this stable in 1.1 (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.cpp | 6 |
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? */ |
