diff options
author | Junghoon Park <jh9216.park@samsung.com> | 2016-03-14 17:25:47 +0900 |
---|---|---|
committer | Junghoon Park <jh9216.park@samsung.com> | 2016-04-04 22:48:06 -0700 |
commit | 0bf1d46c2b1d851cf187bc3ec03f2088ebbc52cf (patch) | |
tree | 640e738c9d7e1318316957c9a4df9387ee30ba0a | |
parent | 1ef14706fdb95bfa42d9ad0f881ad8223e73f64b (diff) | |
download | app-core-0bf1d46c2b1d851cf187bc3ec03f2088ebbc52cf.tar.gz app-core-0bf1d46c2b1d851cf187bc3ec03f2088ebbc52cf.tar.bz2 app-core-0bf1d46c2b1d851cf187bc3ec03f2088ebbc52cf.zip |
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 <jh9216.park@samsung.com>
-rw-r--r-- | src/appcore.c | 10 |
1 files changed, 10 insertions, 0 deletions
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) { |