Close all fds while creating process pool 57/297157/4
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 11 Aug 2023 06:26:58 +0000 (15:26 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 11 Aug 2023 07:43:30 +0000 (16:43 +0900)
commit72f8ca9f6ff4ee53e382c73bac1eaba6e2c01022
tree806c1d85ad3d93ca9e28b53bd73d15f016f6674e
parent2e19fffa4052578b1127951c12caaab007c1a122
Close all fds while creating process pool

After calling fork(), the child process should close all unused file
descriptors.

Change-Id: I5c0e714dff3bff182fdafbeb1153da5b4e38d0b7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/launchpad.cc
src/launchpad-process-pool/loader_manager.cc
src/launchpad-process-pool/process_pool.cc
src/lib/launchpad-glib/util.cc
src/lib/launchpad-glib/util.hh