Wait for the creation of a socket 51/302851/3
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 14 Dec 2023 11:16:25 +0000 (20:16 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 15 Dec 2023 01:13:08 +0000 (10:13 +0900)
commit56850f56d6720ae29ba5df337ee01a38b4209fcd
tree6d6d6c4286c0268891048bd712aee5a5a619b1c6
parente43e8144882fab41c3ff654541c282850b25eb57
Wait for the creation of a socket

When the app launcher tool receives a request to execute through the -f option,
it waits for the creation of a socket in the launchpad-process-pool.
If the socket is not created yet, we call usleep() every 100ms and monitor.
The maximum timeout is 10 seconds.

Change-Id: I98b5e0dc704fe08ae6130d46d0057e3041f9d260
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tool/app_launcher/app_launcher.c