Get LAUNCHPAD_LISTEN_FD variable from the environment 13/261413/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 16 Jul 2021 11:16:46 +0000 (20:16 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 16 Jul 2021 11:16:46 +0000 (20:16 +0900)
commit4e4552fe6768c26a2d776718c3c6a4d526cdb55c
tree0dfb87bf2046d8c2977d98bafca20965cd33dd2e
parent57ab166096000e1fc7ec5384560379edfe5ed2bc
Get LAUNCHPAD_LISTEN_FD variable from the environment

Currently, the file descriptior is not generated sequentially in some devices.
The launchpad-process-pool is not always started by systemd. In this
case, the program sets LAUNCHPAD_LISTEN_FD variable to the environment.
After this patch is applied, the launchpad-process-pool tries to get the
fd from the environment if calling sd_listen_fd() is failed.

Change-Id: Ice99b52282b9ed7322acc185c150b6c8550d0d8d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/src/launchpad.c