Revert "Send a startup signal in the constructor" 44/301544/1
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 20 Nov 2023 01:59:53 +0000 (10:59 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 20 Nov 2023 02:00:35 +0000 (11:00 +0900)
This reverts commit 1c1714c08ecb9eade1058bc4cbff41dcdb74e2ec.

Change-Id: I7217c6355bc38f0c59d93fe112a39e2c764cc0f5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
include/aul.h
src/aul_launch.c
src/status.cc

index f537c87633776f5a1e0a9f29a431f34027ec4f9d..41b468fbc6d16353dd5bd5a7fce818fe8a5f9246 100644 (file)
@@ -3046,11 +3046,6 @@ int aul_ignore_app_status(status_listen_h handle);
 int aul_notify_exit(void);
 int aul_notify_start(void);
 
-/**
- * This API is only for Appfw internally.
- */
-int aul_send_startup_signal(void);
-
 /**
  * This API is only for App Framework internally.
  */
index 9df58c36da9a64163f050e7c53c3b084d49160f3..e09b9d2368080b73e4d99ceb2ca5d24485c637a0 100644 (file)
@@ -94,8 +94,6 @@ static launch_context __context;
 AUL_CTOR static void __aul_constructor(void)
 {
        g_rec_mutex_init(&__context.init_mutex);
-       if (!getenv("AUL_FAST_LAUNCH") && getenv("AUL_APPID"))
-               aul_send_startup_signal();
 }
 
 AUL_DTOR static void __aul_destructor(void)
index 98ee7bfb4d09d87a5325c481bfc1894cb4da1d5e..6e36738c84fd3ac76424cd561ee2bd72524c245a 100644 (file)
@@ -345,11 +345,6 @@ extern "C" API int aul_notify_start(void) {
       .SendCmdOnly(AUL_SOCK_NOREPLY);
 }
 
-extern "C" API int aul_send_startup_signal(void) {
-  return AppRequest(APP_STARTUP_SIGNAL, getuid())
-      .SendCmdOnly(AUL_SOCK_NOREPLY);
-}
-
 extern "C" API const char* aul_app_status_convert_to_string(int status) {
   switch (status) {
     case STATUS_LAUNCHING: