From 0bf1d46c2b1d851cf187bc3ec03f2088ebbc52cf Mon Sep 17 00:00:00 2001 From: Junghoon Park Date: Mon, 14 Mar 2016 17:25:47 +0900 Subject: [PATCH] Check tep path - If tep is used, appcore will check tep path for a while to make sure tep path was mounted Change-Id: I0d8ec84db930c1d6f0e37e90f28455dcf5db1b0c Signed-off-by: Junghoon Park --- src/appcore.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/appcore.c b/src/appcore.c index 4de390e..82cd327 100644 --- a/src/appcore.c +++ b/src/appcore.c @@ -512,6 +512,7 @@ static void __remove_suspend_timer(struct appcore *ac) static int __aul_handler(aul_type type, bundle *b, void *data) { int ret; + const char *tep_path = NULL; #ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT const char *bg = NULL; struct appcore *ac = data; @@ -520,6 +521,15 @@ static int __aul_handler(aul_type type, bundle *b, void *data) switch (type) { case AUL_START: _DBG("[APP %d] AUL event: AUL_START", _pid); + tep_path = bundle_get_val(b, AUL_TEP_PATH); + if (tep_path) { + ret = aul_check_tep_mount(tep_path); + if (ret == -1) { + _ERR("mount request not completed within 1 sec"); + exit(-1); + } + } + #ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT bg = bundle_get_val(b, AUL_K_ALLOWED_BG); if (bg && strncmp(bg, "ALLOWED_BG", strlen("ALLOWED_BG")) == 0) { -- 2.7.4