argos-systemd: stop watchdog while suspending on idle 54/189254/5 submit/tizen/20181004.081606
authorByungSoo Kim <bs1770.kim@samsung.com>
Mon, 6 Aug 2018 08:06:57 +0000 (17:06 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 20 Sep 2018 12:06:52 +0000 (14:06 +0200)
commit231b2923b4ede504e97d60363a6ae6ddde1c60b2
tree6714fb10243a9091e3c5c1b764f9d67c44788f30
parent4cd53ab59d647816b4e8915268f6abcec0107b4f
argos-systemd: stop watchdog while suspending on idle

Systemd sometimes misdetected the watchdog while device goes to the suspend state.
If other process failed to suspend,
montonic time of systemd goes on although some process has been already frozen.
So when device woke up, systemd expired the watchdog timer of frozen process and killed it abnormally.

If argos-watchdog receives dbus signal about both suspend and resume,
it can stop and restart the watchdog timer.

Change-Id: Ied02df1e81cca21a05edbeb84f6746d612cc6b05
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
CMakeLists.txt
packaging/argos_watchdog.spec
src/argos-systemd.c