Modify retrying logic of loading app info 20/319220/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 17 Oct 2024 22:06:15 +0000 (07:06 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 17 Oct 2024 22:06:15 +0000 (07:06 +0900)
The maximum number of the retrying count is increased to 30.
And, if it's exceeded, amd calls abort() to create the coredump.

Change-Id: I1d4a8819dccc2483050b396988c5b424c679fccd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/amd_appinfo.cc

index 7848e07d57e2ead42a39adfc4ef725f7043bb493..f0e02d744a003a01a1ecb6dbcb23f261bc02ceee 100644 (file)
 #include <cert-svc/cinstance.h>
 #include <glib.h>
 #include <pkgmgr-info.h>
+#include <stdlib.h>
 
 #include <memory>
 #include <string>
 
-#include "lib/request/request_manager.hh"
 #include "lib/amd_signal.h"
 #include "lib/amd_util.h"
-#include "lib/api/aul_svc_priv_key.h"
-
 #include "lib/api/amd_api_noti.hh"
+#include "lib/api/aul_svc_priv_key.h"
 #include "lib/app_info/app_info_manager.hh"
 #include "lib/common/key_private.hh"
 #include "lib/common/log_private.hh"
+#include "lib/request/request_manager.hh"
 
 namespace {
 
@@ -383,9 +383,9 @@ class Retryer {
             return G_SOURCE_REMOVE;
           }
 
-          if (h->retrying_count_ == 20) {
+          if (h->retrying_count_ == 30) {
             _E("Failed to load appinfo. uid(%u)", h->uid_);
-            exit(-1);
+            abort();
             return G_SOURCE_REMOVE;
           }