Reputation: 131395
On a POSIX (or GNU) system, what can make the dlclose()
function fail?
I know that it fails on repeat-close; and that it misbehaves on a null pointer argument (got a segmentation violation on my system). But are there other situations it can fail?
Edit: I tried looking at the source code and was kind of stumped - could not really figure out where to look (dlclose.c
is not the place apparently).
Upvotes: 1
Views: 265
Reputation: 213375
The actual implementation is here.
Look for calls to _dl_signal_error()
-- there are two.
Upvotes: -1