hal-backend-service: Change to return 0 when no available module 34/320934/2
authorSangYoun Kwak <sy.kwak@samsung.com>
Tue, 11 Mar 2025 09:16:55 +0000 (18:16 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Tue, 11 Mar 2025 09:20:30 +0000 (18:20 +0900)
Previously, if there is no module that can be loaded, service is exited
with return code 1. This will cause the service hal-backend-service be
failed, but it is not desirable for the hal-backend-service scenario.

To fix this, hal-backend-service is modified to return 0 when there is
no available module.

Change-Id: Id239133c09ba7f1e5663d724dae6899dbf8d2bbd
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
hal-backend-service/hal-backend-service.c

index 1aac64d900ae153224bf39f4d2690d9704276cfd..67f7b1684789809ee4bb2b06ca7f7a295343bd60 100644 (file)
@@ -861,12 +861,12 @@ int main(int argc, char **argv)
        }
 
        if (g_slist_length(g_hal_backend_service_data_list) == 0) {
-               _E("No available modules, exit");
+               _W("No available modules, exit");
 
                tizen_core_task_destroy(g_main_task);
                tizen_core_shutdown();
 
-               return 1;
+               return 0;
        }
 
        hal_backend_service_start();