Re: [pulseaudio-discuss] [PATCH] module: postpone lt_dlclose() until a safe time

2016-12-12 Thread Arun Raghavan
On Wed, 21 Sep 2016, at 03:25 PM, Tanu Kaskinen wrote: > When unloading a module, lt_dlclose() may remove the module from memory. > If a module unloads itself, it's not safe to call lt_dlclose() > synchronously from pa_module_unload(), because the execution may return > to the module code that was

[pulseaudio-discuss] [PATCH] module: postpone lt_dlclose() until a safe time

2016-09-21 Thread Tanu Kaskinen
When unloading a module, lt_dlclose() may remove the module from memory. If a module unloads itself, it's not safe to call lt_dlclose() synchronously from pa_module_unload(), because the execution may return to the module code that was removed from memory. To avoid this situation, let's postpone lt