src: fix race on process exit and off thread CA loading · nodejs/node@15fa779 · GitHub
Skip to content

Commit 15fa779

Browse files
legendecastargos
authored andcommitted
src: fix race on process exit and off thread CA loading
When calling `process.exit()` or on uncaught exceptions as soon as the process starts, the process will try to terminate immediately. In this case, there could be a race condition on the unfinished off-thread system CA loader which tries to access the OpenSSL API which has been de-inited on the main thread. PR-URL: #59632 Refs: #59550 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 90d0a1b commit 15fa779

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/api/environment.cc

Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)