[UI Thread] Fix duplicated initialization of ecore signal handler 28/273928/2 submit/tizen/20220419.070532
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 18 Apr 2022 06:49:57 +0000 (15:49 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 18 Apr 2022 06:56:20 +0000 (15:56 +0900)
commitfae381c764b26bb726b016a30182543ad43bb151
tree8db256c6ee6c3bfcf0c94b8caa650b97b4fa784b
parent99229e32f6b5710b0870afa3f30af5ede2d576cf
[UI Thread] Fix duplicated initialization of ecore signal handler

To prevent duplicated initialization of the ecore signal handler, this patch add
a new flag to check whether the ecore signal is initialized or not.
Before creating a new child process, the ecore signal handler blocks signals to
stop inheriting signal handlers. After creating a new child process,
the ecore signal handler unblocks signals.

Change-Id: I5f8e2efffec98e9cd3e4387420ceb7126aa01d84
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/ecore/ecore_signal.c