Fix a bug about socket exsitence check 23/266223/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 9 Nov 2021 08:06:27 +0000 (17:06 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 9 Nov 2021 08:06:27 +0000 (17:06 +0900)
commit2d0630803f8adb10d5e149e722f5116edfc80e84
tree390128614b5222c545206653bff202d8a75311fa
parent4a9d713fa6d8d76daa7f3744d6d4ab89ccf35c64
Fix a bug about socket exsitence check

When getting app startup signal from a child process of launchpad, AMD
tries to connect to the app socket. When calling the aul_initialize() function,
the application sends the APP_NOTIFY_START request to AMD.
While handling the APP_NOTIFY_START command, AMD sets the flag that is
socket_exists of the app status handle.
After this patch is applied, AMD checks whether the socket exists or not
before sending the app request to the application.

Change-Id: I6974e8684f6b5fec3adc0e4fcd63ec4946f14866
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/amd_app_request_broker.cc
src/lib/amd_launch.c