I was looking for some reusable code and found static function send_sighup in sss_debuglevel.c. This function can be useful in other tools as well, so I renamed it to signal_sssd, added signum parameter and put it to tools_util.c/h. It can be used to send any signal to sssd monitor.
Patch is in attachment.
Thanks Michal
On Mon, Sep 10, 2012 at 07:00:17PM +0200, Michal Židek wrote:
I was looking for some reusable code and found static function send_sighup in sss_debuglevel.c. This function can be useful in other tools as well, so I renamed it to signal_sssd, added signum parameter and put it to tools_util.c/h. It can be used to send any signal to sssd monitor.
Patch is in attachment.
Thanks Michal
Looks OK in general, but because this is part of the ticket that is going to make sss_cache send a signal to the monitor, then I think it makes sense to send both patches in a single e-email. That way it would be clear that the refactor was a part of a bigger change.
sssd-devel@lists.fedorahosted.org