fix: clean up TLS state in AI child process before closing fd
This commit is contained in:
parent
598a80c927
commit
01c00c87c8
1 changed files with 1 additions and 0 deletions
1
calc.c
1
calc.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue