Check tep path 86/62086/2
authorJunghoon Park <jh9216.park@samsung.com>
Mon, 14 Mar 2016 08:25:47 +0000 (17:25 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Tue, 5 Apr 2016 05:48:06 +0000 (22:48 -0700)
- 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 <jh9216.park@samsung.com>
src/appcore.c

index 4de390e296c657a8ef8605a94b6a855fcc563284..82cd32793417725b25562c1e2cea5f0f7bfb2e45 100644 (file)
@@ -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) {