* limitations under the License.
*/
+#include <Ecore.h>
#include <aul.h>
#include <aul_app_lifecycle.h>
#include <aul_watchdog.h>
#include <locale.h>
#include <malloc.h>
#include <sensor_internal.h>
+#include <signal.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <sys/time.h>
impl_->loop_delegator_->OnLoopInit(argc, argv);
else
OnLoopInit(argc, argv);
+
+ signal(SIGTERM, [](int n) {
+ ecore_main_loop_thread_safe_call_sync(
+ [](void* data) -> void* {
+ _W("sigterm handler");
+ ecore_main_loop_quit();
+ return nullptr;
+ }, nullptr);
+ });
+
traceEnd(TTRACE_TAG_APPLICATION_MANAGER);
if (impl_->feature_ & FEATURE_BACKGROUND_MANAGEMENT)