Lock and unlock mutex for process creation 78/298778/2
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 13 Sep 2023 10:09:42 +0000 (19:09 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 13 Sep 2023 10:39:30 +0000 (19:39 +0900)
commit1bbd868c3e906a043920e7038feae840925231a1
tree7d7fa8cf9236238a499cec2c9a7859f0fdadd2ee
parent7afc5ce5b384682b0fcac395b2a92e7974449ae2
Lock and unlock mutex for process creation

To prevent memory corruption issue, this patch adds locking and
unlocking a mutex. If the memory allocation occurs when creating a
children process using fork(), the children process has a memory problem.

Change-Id: I6abc980533686421b30a7cbdac52f370cc352748
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/dbus.cc
src/launchpad-process-pool/executor.cc
src/launchpad-process-pool/rec_mutex.hh [new file with mode: 0644]