File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -795,21 +795,23 @@ void signalHandler (int signum) {
795
795
796
796
if (appStatus == -1 ) {
797
797
appStatus = signum;
798
- log (" App result: " + std::to_string (signum));
798
+ log (" App result (signal) : " + std::to_string (signum));
799
799
}
800
800
801
801
if (signum == SIGTERM || signum == SIGINT) {
802
+ #if SOCKET_RUNTIME_PLATFORM_LINUX
803
+ while (wait (NULL ) != -1 || errno == EINTR);
804
+ #endif
802
805
signal (signum, SIG_DFL);
803
806
raise (signum);
804
807
}
805
808
806
809
#if SOCKET_RUNTIME_PLATFORM_LINUX
807
- msleep (500 );
808
810
if (gtk_main_level () > 0 ) {
809
811
g_main_context_invoke (
810
812
nullptr ,
811
813
+[](gpointer userData) -> gboolean {
812
- msleep (16 );
814
+ msleep (1000 );
813
815
gtk_main_quit ();
814
816
return true ;
815
817
},
You can’t perform that action at this time.
0 commit comments