Commit 15fa779
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
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| |||
1024 | 1027 | | |
1025 | 1028 | | |
1026 | 1029 | | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
1027 | 1035 | | |
1028 | 1036 | | |
1029 | 1037 | | |
| |||
0 commit comments