我使用dlopen(NULL)
获取可执行文件主模块的句柄,如下所示。
void *handle = dlopen(NULL, RTLD_NOW);
我应该调用dlclose(handle)
来将重新计数减少到主模块吗?
答案 0 :(得分:0)
从联系手册:
dlclose()
The function dlclose() decrements the reference count on the dynamic
library handle handle. If the reference count drops to zero and no
other loaded libraries use symbols in it, then the dynamic library is
unloaded.
当我打电话给#34;主要"我打赌它是noop处理