diff --git a/src/unix-manager.c b/src/unix-manager.c index 19922cce7e..c2b87ad3d9 100644 --- a/src/unix-manager.c +++ b/src/unix-manager.c @@ -580,6 +580,9 @@ int UnixMain(UnixCommand * this) } if (suricata_ctl_flags & (SURICATA_STOP | SURICATA_KILL)) { + TAILQ_FOREACH_SAFE(uclient, &this->clients, next, tclient) { + UnixCommandClose(this, uclient->fd); + } return 1; }