Browse Source

TT#106253 cleanup TLS variables on shutdown

Change-Id: I77f88e6a34e4720f6fbd0c585d2cf9843a3b309e
pull/1194/head
Richard Fuchs 5 years ago
parent
commit
543bac908e
3 changed files with 7 additions and 0 deletions
  1. +4
    -0
      recording-daemon/db.c
  2. +1
    -0
      recording-daemon/db.h
  3. +2
    -0
      recording-daemon/epoll.c

+ 4
- 0
recording-daemon/db.c View File

@ -451,3 +451,7 @@ void db_config_stream(output_t *op) {
execute_wrap(&stm_config_stream, b, NULL);
}
void db_thread_end(void) {
reset_conn();
}

+ 1
- 0
recording-daemon/db.h View File

@ -10,6 +10,7 @@ void db_do_stream(metafile_t *mf, output_t *op, const char *type, stream_t *, un
void db_close_stream(output_t *op);
void db_delete_stream(output_t *op);
void db_config_stream(output_t *op);
void db_thread_end(void);
#endif

+ 2
- 0
recording-daemon/epoll.c View File

@ -7,6 +7,7 @@
#include "log.h"
#include "main.h"
#include "garbage.h"
#include "db.h"
static int epoll_fd = -1;
@ -34,6 +35,7 @@ void epoll_del(int fd) {
static void poller_thread_end(void *ptr) {
mysql_thread_end();
db_thread_end();
}


Loading…
Cancel
Save