summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2016-01-12 20:07:59 -0500
committerSimo Sorce <simo@redhat.com>2016-04-05 13:00:12 -0400
commite215e5534bb56f3887521443ce6c77d13ea3518d (patch)
tree4d1f8ee865c3ff12e84dd58811ca983c194adb5d /src/python
parentdad416a9b0095e1c423b7da65db7c636fa69e614 (diff)
downloadsssd-e215e5534bb56f3887521443ce6c77d13ea3518d.tar.gz
sssd-e215e5534bb56f3887521443ce6c77d13ea3518d.tar.xz
sssd-e215e5534bb56f3887521443ce6c77d13ea3518d.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
Diffstat (limited to 'src/python')
0 files changed, 0 insertions, 0 deletions