I am working on a shared library to provide some functionality. I want to be able to set some attributes when this library is loaded and running in a process. For example, I want to set the log level of my library based on some signals. For example, when the user wants to change the log level, he can change some attributes and notify the process somehow. How can I detect this signal. I am working on Linux.