Enhance display/power lock managemenent
Summary:
- Detect someone who holds lock longer than 30 minutes.
- If a general application is detected, deviced generates signal
with time information in addtion to pid.
- If a specific daemon is detected, deviced tries to kill it directly.
For general applications:
Added an addition information, lock holding time in second, to the
signal "pmlock_expired". This makes someone, who is in charge of
application lifecycle and notification, possible to determine whether
to kill that application or not.
For some specific killable daemon:
Added list of killable daemon to conf file and deviced loads that list.
If a killable daemon holds lock longer than 30 minutes, deviced directly
sends SIGTERM to that daemon, releasing lock. After for a while, deviced
checks once more, if the daemon is still alive then, sends SIGKILL.
Change-Id: Ia0d433facdcc7814e19278619a58a111ff7ff7c3
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>