Fix child process deadlock issue 69/290469/3
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 27 Mar 2023 05:53:06 +0000 (05:53 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 27 Mar 2023 05:58:58 +0000 (05:58 +0000)
commitcf20e6da0c3050064617eb80f23ed001a101d032
tree261eae4a8975b84efbcf9befeea45de30c36c6fc
parent2fc946c83e2d3c505be7f54a10808aa453858575
Fix child process deadlock issue

When a child process accesses the destructor of std::condition_variable,
it can potentially go to the deadlock state.
To avoid the deadlock issue of the child process, the launchpad
allocates the condition variables using new keyword.

Change-Id: Icc5709671cb9a54557fc6a78ccb9f416c2e3d114
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/dbus.cc
src/launchpad-process-pool/worker.cc
src/launchpad-process-pool/worker.hh