Enable terminate_bg_app func. 16/52316/2
authorMyungki Lee <mk5004.lee@samsung.com>
Mon, 23 Nov 2015 06:05:27 +0000 (15:05 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Mon, 23 Nov 2015 06:05:27 +0000 (15:05 +0900)
Change-Id: I1d9e053635099b5fc911ffb3598a8bab4ad6b1a8
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/app_manager.c

index d29ad60..c437819 100644 (file)
@@ -260,17 +260,16 @@ API int app_manager_terminate_app(app_context_h app_context)
 
 API int app_manager_request_terminate_bg_app(app_context_h app_context)
 {
-#if 0
        int retval = APP_MANAGER_ERROR_NONE;
        pid_t pid = 0;
-#endif
+
        if (app_context == NULL)
        {
                return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
        }
-       /* TODO: implement aul_terminate_bgapp_pid */
-#if 0
-       if (app_context_get_pid(app_context, &pid) != APP_MANAGER_ERROR_NONE) {
+
+       if (app_context_get_pid(app_context, &pid) != APP_MANAGER_ERROR_NONE)
+       {
                return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, "failed to get the process ID");
        }
 
@@ -289,7 +288,7 @@ API int app_manager_request_terminate_bg_app(app_context_h app_context)
        {
                return APP_MANAGER_ERROR_REQUEST_FAILED;
        }
-#endif
+
        return APP_MANAGER_ERROR_NONE;
 }