Log in LoaderUnload() in a signal safe manner
The function may be called from a fatal signal handler. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c3e1168778
commit
d51aebdbf9
|
@ -163,7 +163,7 @@ LoaderSymbol(const char *name)
|
|||
void
|
||||
LoaderUnload(const char *name, void *handle)
|
||||
{
|
||||
xf86Msg(X_INFO, "Unloading %s\n", name);
|
||||
LogMessageVerbSigSafe(X_INFO, 1, "Unloading %s\n", name);
|
||||
if (handle)
|
||||
dlclose(handle);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user