2
0
Fork 0
forked from zynk/zynk

fix: clean up TLS state in AI child process before closing fd

This commit is contained in:
Armin 2026-06-29 16:57:40 +02:00
commit 01c00c87c8

1
calc.c
View file

@ -618,6 +618,7 @@ static void ai_ask(Session *s, const char *question, const char *reply_target, c
if (pid == 0) {
signal(SIGALRM, SIG_DFL);
alarm(35);
tls_cleanup(s);
close(s->fd);
db_close(DB);
db_handle = NULL;