[Oisf-devel] codes of clean unix socker manager thread

Eric Leblond eric at regit.org
Sat Feb 23 11:35:53 UTC 2013


Hello,

On Sat, 2013-02-23 at 19:19 +0800, iswalker wrote:
> when suricata exit, UnixSocketKillSocketThread() called ,but the codes
> in this function will NOT execute,

Good catch. Thanks a lot.

Here's the patch applying your fix:
https://github.com/regit/suricata/commit/a84567be1c2cabde4ce73b0710bd244c5674b409

BR,

> 
> void UnixSocketKillSocketThread(void)
> {
>     ThreadVars *tv = NULL;
> 
>     SCMutexLock(&tv_root_lock);
> 
>     /* flow manager thread(s) is/are a part of mgmt threads */
> 
> /*iswalker,here index should be TVT_CMD,because codes in TV type in
> TmThreadCreateCmdThread register is TVT_CMD*/   
>  tv = tv_root[TVT_MGMT];
> 
> 
> thanks.
> 
> 
> iswalker
> 
> _______________________________________________
> Suricata IDS Devel mailing list: oisf-devel at openinfosecfoundation.org
> Site: http://suricata-ids.org | Participate: http://suricata-ids.org/participate/
> List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
> Redmine: https://redmine.openinfosecfoundation.org/

-- 
Eric Leblond <eric at regit.org>
Blog: https://home.regit.org/




More information about the Oisf-devel mailing list