Remove executable file check 16/272616/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 21 Mar 2022 22:55:04 +0000 (07:55 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 21 Mar 2022 22:58:09 +0000 (07:58 +0900)
Checking the executable file can be slow when the system is boot up.
It causes performance degrdation of AMD. This patch is to prevent
performance degradation.

Change-Id: I0133598ce003e49b1d238266600b5fc415df3eeb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/src/launchpad.c

index 104f426be6daca783390f105901dac5a4c180915..37fd7a33f86d5da1f87dc22e5224c93fc2955229 100644 (file)
@@ -2151,7 +2151,6 @@ static bool __handle_launch_event(int fd, io_condition_e cond, void *data)
        appinfo_t *menu_info = NULL;
        candidate_process_context_t *cpc = NULL;
        candidate_process_context_t *org_cpc = NULL;
-       const char *installed_storage;
        const char *app_path = NULL;
        int pid = -1;
        int clifd = -1;
@@ -2269,22 +2268,6 @@ static bool __handle_launch_event(int fd, io_condition_e cond, void *data)
                goto end;
        }
 
-       installed_storage = bundle_get_val(kb, AUL_K_INSTALLED_STORAGE);
-       if (!installed_storage || strcmp(installed_storage, "external") != 0) {
-               if (menu_info->app_type &&
-                               (!strcmp(menu_info->app_type, "capp") ||
-                                !strcmp(menu_info->app_type, "c++app"))) {
-                       if (access(app_path, X_OK) != 0) {
-                               ret = -errno;
-                               _E("%s is not executable. errno(%d)",
-                                               app_path, errno);
-                               __send_result_to_caller(clifd, ret);
-                               clifd = -1;
-                               goto end;
-                       }
-               }
-       }
-
        if (menu_info->hwacc == NULL) {
                _E("[launchpad] Failed to find H/W acceleration type");
                __send_result_to_caller(clifd, -EINVAL);