Remove abort handler registration and change terminate callback 80/69180/4
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 12 May 2016 05:45:42 +0000 (14:45 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 13 May 2016 12:36:03 +0000 (05:36 -0700)
Change-Id: I73c221c5a97cbba1fd38cd7629f10e1659f523aa

adaptors/common/application-impl.cpp
adaptors/tizen/framework-tizen.cpp
adaptors/ubuntu/framework-ubuntu.cpp

index ee1158b..87daa3c 100644 (file)
@@ -160,9 +160,6 @@ void Application::QuitFromMainLoop()
 {
   mAdaptor->Stop();
 
-  Dali::Application application(this);
-  mTerminateSignal.Emit( application );
-
   mFramework->Quit();
   // This will trigger OnTerminate(), below, after the main loop has completed.
 }
@@ -221,6 +218,9 @@ void Application::OnTerminate()
   // we've been told to quit by AppCore, ecore_x_destroy has been called, need to quit synchronously
   // delete the window as ecore_x has been destroyed by AppCore
 
+  Dali::Application application(this);
+  mTerminateSignal.Emit( application );
+
   if( mAdaptor )
   {
     // Ensure that the render-thread is not using the surface(window) after we delete it
index 3ef3fa2..1d7450e 100644 (file)
@@ -377,13 +377,6 @@ bool Framework::AppStatusHandler(int type, void *bundleData)
     {
       mInitialised = true;
 
-      // Connect to abnormal exit signals
-      mAbortHandler.AbortOnSignal( SIGINT );
-      mAbortHandler.AbortOnSignal( SIGQUIT );
-      mAbortHandler.AbortOnSignal( SIGKILL );
-      mAbortHandler.AbortOnSignal( SIGTERM );
-      mAbortHandler.AbortOnSignal( SIGHUP );
-
       mObserver.OnInit();
       break;
     }
index 1edd301..cb7252b 100644 (file)
@@ -220,11 +220,6 @@ bool Framework::AppStatusHandler(int type, void *bundleData)
     {
       mInitialised = true;
 
-      // Connect to abnormal exit signals
-      mAbortHandler.AbortOnSignal( SIGINT );
-      mAbortHandler.AbortOnSignal( SIGQUIT );
-      mAbortHandler.AbortOnSignal( SIGKILL );
-
       mObserver.OnInit();
       break;
     }
@@ -238,7 +233,7 @@ bool Framework::AppStatusHandler(int type, void *bundleData)
       break;
 
     case APP_TERMINATE:
-     mObserver.OnTerminate();
+      mObserver.OnTerminate();
       break;
 
     case APP_PAUSE: