Commit c41b76a
committed
auplugin: join feed worker before returning
auplugin_event_feed detached the outbound feed thread and returned after inbound shutdown, allowing callers to free shared state while callbacks could still be running.
Fixed auplugin_event_feed by removing pthread_detach(outbound_thread) and synchronizing shutdown with pthread_join(outbound_thread, NULL) before returning. This ensures callback processing is finished before caller teardown starts, preventing any shutdown races.1 parent 6e440a8 commit c41b76a
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | 216 | | |
218 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
219 | 225 | | |
220 | 226 | | |
221 | 227 | | |
| |||
343 | 349 | | |
344 | 350 | | |
345 | 351 | | |
346 | | - | |
| |||
0 commit comments