From: Stephane Desneux Date: Fri, 22 May 2015 10:49:10 +0000 (+0200) Subject: amd: check appinfo_init() retcode to exit gracefully X-Git-Tag: submit/tizen/20150526.104937~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F39795%2F1;p=platform%2Fcore%2Fappfw%2Faul-1.git amd: check appinfo_init() retcode to exit gracefully Change-Id: Ife80ee7857a4d6eaeb37fb4e877aa539a9fe6492 Signed-off-by: Stephane Desneux --- diff --git a/am_daemon/amd_main.c b/am_daemon/amd_main.c index 848bc06..f22706a 100644 --- a/am_daemon/amd_main.c +++ b/am_daemon/amd_main.c @@ -250,7 +250,11 @@ int __agent_dead_handler(uid_t user) static int __init() { - appinfo_init(); + if (appinfo_init()) { + _E("appinfo_init failed\n"); + return -1; + } + _requset_init(); if (vconf_notify_key_changed(VCONFKEY_SETAPPL_DEVOPTION_BGPROCESS,