Add SIGTERM handler 39/293739/2
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 2 Jun 2023 07:24:00 +0000 (07:24 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 2 Jun 2023 11:15:52 +0000 (11:15 +0000)
commit01a4f902fc2ee2c65549dd2e278671e0d4275c39
tree3ecf744415d713d236de3465e5b40cbf4522b9e5
parent4abe845131b7b29ca65991d08535e3d1a6a1a223
Add SIGTERM handler

Before calling g_unis_signal_add() with SIGTERM signal, the application core
cannot handle the sigterm signal. In .NET application case, the sub thread
releases the loaded shared library when getting the SIGTERM signal.
This patch adds a SigtermHandler class to handle the SIGTERM signal
before calling the AppCoreBase::Init().

Change-Id: I195e214c86920846a7d7a1828edc7ca03d6ac564
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tizen-cpp/app-core-cpp/app_core_base.cc
tizen-cpp/app-core-cpp/sigterm_handler_private.cc [new file with mode: 0644]
tizen-cpp/app-core-cpp/sigterm_handler_private.hh [new file with mode: 0644]