Validate a custom loader process 25/213925/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 16 Sep 2019 23:11:38 +0000 (08:11 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 16 Sep 2019 23:11:38 +0000 (08:11 +0900)
Before sending a launch request, the launchpad checks whether the custom
loader is prepared or not. If it's not prepared, the application will be
launched by exec().

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

index 6a676d9..1e11e19 100755 (executable)
@@ -1836,6 +1836,8 @@ static gboolean __handle_launch_event(gpointer data)
                } else {
                        type = LAUNCHPAD_TYPE_DYNAMIC;
                        cpc = __find_slot(type, loader_id);
+                       if (cpc && !cpc->prepared)
+                               cpc = NULL;
                }
        }