Some apps may need to call elm_exit().
This patch generalizes the termination logic by Exit().
Change-Id: I1242883c2515c7c2306f7464de5088257ae477b6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
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);
+ _W("sigterm handler");
+ if (context_ != nullptr)
+ context_->Exit();
});
traceEnd(TTRACE_TAG_APPLICATION_MANAGER);