Remove non async-signal-safe function from signal handler 13/263913/3 submit/tizen/20210914.034215
authorYoungHun Kim <yh8004.kim@samsung.com>
Mon, 13 Sep 2021 09:11:22 +0000 (18:11 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Mon, 13 Sep 2021 11:43:50 +0000 (20:43 +0900)
 - As Is : Set IDLE state with g_mutex_lock to avoid new client connection while signal handler executes
 - To Be : Remove g_mutex_lock and dlog which deadlock can occur by non async-signal-safe function

Change-Id: I665ebe5017669530912ce493fa5ed9cb378dc19b

packaging/mused.spec
server/src/muse_server_signal.c

index e96fdbd..86adadf 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A multimedia daemon
-Version:    0.3.137
+Version:    0.3.138
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 67e4ab5..26bffe4 100644 (file)
@@ -35,10 +35,6 @@ static void _ms_signal_sigaction(int signo, siginfo_t *si, void *arg);
 
 static void _ms_signal_handler(int signo)
 {
-       LOGD("signo(%d)", signo);
-
-       ms_set_state(MUSE_SERVER_STATE_IDLE);
-
        switch (signo) {
        case SIGSEGV:
                sigaction(SIGSEGV, &ms_segv_old_action, NULL);