Fix request timeout handler
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 30 Dec 2020 22:50:42 +0000 (07:50 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 5 Jan 2021 22:53:30 +0000 (07:53 +0900)
This patch removes updating the app status information from the timeout handler.
Even if the launched application is running normally, the application is
terminated by AMD. This patch is to prevent app termination.

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

index 359651b34ab425835c7ffdbe59a620928f98faf0..7640c69194095649fbe226c7edd6df042d2f98ee 100644 (file)
@@ -388,7 +388,6 @@ static gboolean __timeout_request(gpointer data)
 {
        request_h req = (request_h)data;
        struct pending_item *item;
-       app_status_h app_status;
 
        if (req == NULL)
                return FALSE;
@@ -401,12 +400,8 @@ static gboolean __timeout_request(gpointer data)
                _request_send_result(req, -EAGAIN);
        req->timer = 0;
 
-       if (req->critical) {
-               _E("App is not responding");
-               app_status = _app_status_find(req->t_pid);
-               if (app_status)
-                       _app_status_update_status(app_status, STATUS_DYING, false, true);
-       }
+       if (req->critical)
+               _E("App(%d) is not responding", req->t_pid);
 
        __free_request(req);