diff options
author | Simo Sorce <simo@redhat.com> | 2016-01-12 20:07:59 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-29 21:45:30 +0200 |
commit | 75ba524d356fed615a9c92152f64aebf0bdaf9c2 (patch) | |
tree | 9fa8b5f4331ec182921eb43f629c3b6880910dd6 /src/config | |
parent | 96a624877512ac352736047023b65b8688039ae1 (diff) | |
download | sssd-75ba524d356fed615a9c92152f64aebf0bdaf9c2.tar.gz sssd-75ba524d356fed615a9c92152f64aebf0bdaf9c2.tar.xz sssd-75ba524d356fed615a9c92152f64aebf0bdaf9c2.zip |
Util: Add watchdog helper
The watchdog uses a kernel timer to issue a signal to the process.
It checks if the ticker is not being reset by the main event loop, which
would indicate that the process got stuck.
At the same time it sets a tevent timer to clear the watchdog ticker, so
that the watchdog handler is kept happy.
If the watchdog detects that the timer event failed to reset the watchdog for
three times in a row then the process is killed.
Normally the monitor will detect the child terminated and will rescheduled it.
Related:
https://fedorahosted.org/sssd/ticket/2921
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/config')
0 files changed, 0 insertions, 0 deletions