From 158e0ff204dae0e7d44e11fd7c1e623c31d12ea1 Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Mon, 23 Nov 2015 15:05:27 +0900 Subject: [PATCH] Enable terminate_bg_app func. Change-Id: I1d9e053635099b5fc911ffb3598a8bab4ad6b1a8 Signed-off-by: Myungki Lee --- src/app_manager.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app_manager.c b/src/app_manager.c index d29ad60..c437819 100644 --- a/src/app_manager.c +++ b/src/app_manager.c @@ -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; } -- 2.7.4