From the Erlang documentation for erl_drv_thread_create via enif_thread_create1:
Warning
All created threads need to be joined by the driver before it is unloaded.
If the driver fails to join all threads created before it is unloaded, the
runtime system will most likely crash when the code of the driver is unloaded.
I am not entirely sure if this warning applies to enif_thread_create as well, but the documentation seems to indicate that it would. I wanted to see if you had any feedback before I try to patch the code to support joining the polling thread. I think it will be useful when adding upgrade support to the erlzmq and erlzmq_nif modules.
From the Erlang documentation for
erl_drv_thread_createviaenif_thread_create1:I am not entirely sure if this warning applies to
enif_thread_createas well, but the documentation seems to indicate that it would. I wanted to see if you had any feedback before I try to patch the code to support joining the polling thread. I think it will be useful when adding upgrade support to theerlzmqanderlzmq_nifmodules.