@@ -955,6 +955,7 @@ OBSApp::OBSApp(int &argc, char **argv, profiler_name_store_t *store)
955955
956956OBSApp::~OBSApp ()
957957{
958+ blog (LOG_INFO, " [OBSApp] Destructor" );
958959 if (libobs_initialized) {
959960 applicationShutdown ();
960961 }
@@ -1807,6 +1808,7 @@ bool WindowPositionValid(QRect rect)
18071808#ifndef _WIN32
18081809void OBSApp::SigIntSignalHandler (int s)
18091810{
1811+ blog (LOG_INFO, " [OBSApp] SigIntSignalHandler" );
18101812 /* Handles SIGINT and writes to a socket. Qt will read
18111813 * from the socket in the main thread event loop and trigger
18121814 * a call to the ProcessSigInt slot, where we can safely run
@@ -1819,6 +1821,8 @@ void OBSApp::SigIntSignalHandler(int s)
18191821
18201822void OBSApp::SigTermSignalHandler (int s)
18211823{
1824+ blog (LOG_INFO, " [OBSApp] SigTermSignalHandler" );
1825+
18221826 UNUSED_PARAMETER (s);
18231827
18241828 char a = 1 ;
@@ -1831,6 +1835,8 @@ void OBSApp::ProcessSigInt(void)
18311835 /* This looks weird, but we can't ifdef a Qt slot function so
18321836 * the SIGINT handler simply does nothing on Windows. */
18331837#ifndef _WIN32
1838+ blog (LOG_INFO, " [OBSApp] ProcessSigInt" );
1839+
18341840 char tmp;
18351841 recv (sigintFd[1 ], &tmp, sizeof (tmp), 0 );
18361842
@@ -1845,6 +1851,8 @@ void OBSApp::ProcessSigInt(void)
18451851void OBSApp::ProcessSigTerm (void )
18461852{
18471853#ifndef _WIN32
1854+ blog (LOG_INFO, " [OBSApp] ProcessSigTerm" );
1855+
18481856 char tmp;
18491857 recv (sigtermFd[1 ], &tmp, sizeof (tmp), 0 );
18501858
@@ -1861,6 +1869,7 @@ void OBSApp::commitData(QSessionManager &manager)
18611869{
18621870 OBSBasic *main = OBSBasic::Get ();
18631871 if (main) {
1872+ blog (LOG_INFO, " [OBSApp] commitData" );
18641873 main->saveAll ();
18651874
18661875 if (manager.allowsInteraction () && main->shouldPromptForClose ()) {
@@ -1897,6 +1906,7 @@ void OBSApp::applicationShutdown() noexcept
18971906 os_inhibit_sleep_destroy (sleepInhibitor);
18981907
18991908 if (libobs_initialized) {
1909+ blog (LOG_INFO, " [OBSApp] Calling obs_shutdown" );
19001910 obs_shutdown ();
19011911 libobs_initialized = false ;
19021912 }
0 commit comments