amd: check appinfo_init() retcode to exit gracefully 95/39795/1
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>
Fri, 22 May 2015 10:49:10 +0000 (12:49 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Fri, 22 May 2015 10:49:10 +0000 (12:49 +0200)
Change-Id: Ife80ee7857a4d6eaeb37fb4e877aa539a9fe6492
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
am_daemon/amd_main.c

index 848bc06..f22706a 100644 (file)
@@ -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,