Commit 9f7b9bb
committed
rtc: skip inherited atexit ffi_dispose in fork children
A fork child inherits the atexit handler but not the native runtime
threads; calling livekit_ffi_dispose() on the dead inherited runtime can
hang or abort at exit. Guard it with the owning pid so only the process
that initialized the FFI disposes it.1 parent c9b34f6 commit 9f7b9bb
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
271 | 277 | | |
272 | 278 | | |
273 | 279 | | |
| |||
0 commit comments