power: unmount cgroup after closing other apps 80/83480/1
authortaeyoung <ty317.kim@samsung.com>
Thu, 11 Aug 2016 07:10:44 +0000 (16:10 +0900)
committertaeyoung <ty317.kim@samsung.com>
Thu, 11 Aug 2016 07:10:44 +0000 (16:10 +0900)
- Previously, cgroup is unmounted when poweroff popup is launched.
  This is a critical bug and it should be fixed.
- Now, cgroup is unmounted just before turning off power.

Change-Id: Iafe16348a77aee6875e47e19b87cf755b85e8200
Signed-off-by: taeyoung <ty317.kim@samsung.com>
src/power/power-handler.c

index 79f2761..8ffc22b 100644 (file)
@@ -269,8 +269,6 @@ static void poweroff_idler_cb(void *data)
                device_notify(DEVICE_NOTIFIER_POWEROFF, &val);
        }
 
-       poweroff_stop_systemd_service();
-
        /* TODO for notify. will be removed asap. */
        vconf_set_int(VCONFKEY_SYSMAN_POWER_OFF_STATUS, val);
 
@@ -404,6 +402,9 @@ static void powerdown(void)
                if (check_duration < 0)
                        break;
        }
+
+       poweroff_stop_systemd_service();
+
 #ifndef EMULATOR
        unmount_rw_partition();
 #endif