diff options
author | Junghoon Park <jh9216.park@samsung.com> | 2016-04-06 19:59:10 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2016-04-06 19:59:10 -0700 |
commit | d358f8024bfdb1af060ad08db861bc08e1008d5d (patch) | |
tree | 6ca9ff192555812207bf0f04519a165495b8dd52 | |
parent | b0d7aa2c02be7cd65a76420c7a39fde81221158a (diff) | |
parent | 0bf1d46c2b1d851cf187bc3ec03f2088ebbc52cf (diff) | |
download | app-core-d358f8024bfdb1af060ad08db861bc08e1008d5d.tar.gz app-core-d358f8024bfdb1af060ad08db861bc08e1008d5d.tar.bz2 app-core-d358f8024bfdb1af060ad08db861bc08e1008d5d.zip |
Merge "Check tep path" into tizensubmit/tizen/20160408.003820accepted/tizen/wearable/20160408.052440accepted/tizen/tv/20160408.052428accepted/tizen/mobile/20160408.052453accepted/tizen/ivi/20160408.052516accepted/tizen/common/20160408.184918
-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 4209c41..991c728 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) { |