Skip to content

Commit

Permalink
unix-manager: fix thread killing function
Browse files Browse the repository at this point in the history
The name of the thread was not searched in the correct family.

Reported-by: iswalker <mail2cissp@gmail.com>
  • Loading branch information
regit committed Feb 23, 2013
1 parent 94fb128 commit a84567b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unix-manager.c
Expand Up @@ -917,7 +917,7 @@ void UnixManagerThreadSpawn(DetectEngineCtx *de_ctx, int mode)
/**
* \brief Used to kill unix manager thread(s).
*
* \todo Kinda hackish since it uses the tv name to identify flow manager
* \todo Kinda hackish since it uses the tv name to identify unix manager
* thread. We need an all weather identification scheme.
*/
void UnixSocketKillSocketThread(void)
Expand All @@ -926,8 +926,8 @@ void UnixSocketKillSocketThread(void)

SCMutexLock(&tv_root_lock);

/* flow manager thread(s) is/are a part of mgmt threads */
tv = tv_root[TVT_MGMT];
/* unix manager thread(s) is/are a part of command threads */
tv = tv_root[TVT_CMD];

while (tv != NULL) {
if (strcasecmp(tv->name, "UnixManagerThread") == 0) {
Expand Down

0 comments on commit a84567b

Please sign in to comment.