Fix a bug about flag check 57/268657/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 29 Dec 2021 04:41:13 +0000 (13:41 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 29 Dec 2021 04:41:13 +0000 (13:41 +0900)
The starting flag can be set by the startup signal handler.
APP_NOTIFY_START handler MUST check the socket exists flag.

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

index b224dbf6c6281e4cf68eb0f66d6d6d59e5c6e124..109342530d20872a0255a32962365e1248a34730 100644 (file)
@@ -2313,7 +2313,7 @@ static int __dispatch_app_notify_start(request_h req)
        app_status_h app_status;
 
        app_status = _app_status_find_v2(pid);
-       if (app_status && !app_status->starting) {
+       if (app_status && !app_status->socket_exists) {
                app_status->socket_exists = true;
                app_status->starting = true;
                app_status->real_pid = pid;