diff options
author | Seungbae Shin <seungbae.shin@samsung.com> | 2017-03-02 12:50:14 +0900 |
---|---|---|
committer | Seungbae Shin <seungbae.shin@samsung.com> | 2017-03-02 12:50:17 +0900 |
commit | 7745bb1dd649ee19b358a6234a6d9b7dc47096cf (patch) | |
tree | 526e6f227100910e33d8a240a23f114eccc2c8ac | |
parent | 0b7c963f5f396bc268781894168c876347bdd1f9 (diff) | |
parent | 0d8349c7185620c9639b8803b54fd0b725cee0e0 (diff) | |
download | libmm-session-accepted/tizen_ivi.tar.gz libmm-session-accepted/tizen_ivi.tar.bz2 libmm-session-accepted/tizen_ivi.zip |
Merge branch 'tizen_3.0' into tizentizen_4.0.m1_releasesubmit/tizen_unified/20170308.100408submit/tizen_4.0/20170811.094300submit/tizen/20170302.115149accepted/tizen/wearable/20170303.004746accepted/tizen/unified/20170309.033110accepted/tizen/tv/20170303.004735accepted/tizen/mobile/20170303.004710accepted/tizen/ivi/20170303.004801accepted/tizen/common/20170303.090710accepted/tizen/4.0/unified/20170816.012123accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_common
Change-Id: I38ddafecb4f297600f67fb39cfcf68469b4e0651
-rw-r--r-- | mm_session.c | 9 | ||||
-rw-r--r-- | packaging/libmm-session.spec | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/mm_session.c b/mm_session.c index 6efb5a7..69d3ec7 100644 --- a/mm_session.c +++ b/mm_session.c @@ -28,7 +28,6 @@ #include <mm_error.h> #include <mm_debug.h> #include <errno.h> -#include <glib.h> #include <pthread.h> #include <signal.h> @@ -466,7 +465,7 @@ int _mm_session_util_read_information(int app_pid, int *session_type, int *flags void __session_signal_handler(int signo) { - char* filename = NULL; + char filename[MAX_FILE_LENGTH]; char str_error[256]; debug_warning("ENTER, sig.num(%d)", signo); @@ -476,16 +475,14 @@ void __session_signal_handler(int signo) sigfillset(&all_mask); sigprocmask(SIG_BLOCK, &all_mask, &old_mask); - filename = g_strdup_printf("/tmp/mm_session_%d", getpid()); + snprintf(filename, sizeof(filename) - 1, "/tmp/mm_session_%d", getpid()); if (!remove(filename)) { debug_log(" remove %s success\n", filename); } else { - strerror_r (errno, str_error, sizeof (str_error)); + strerror_r(errno, str_error, sizeof(str_error)); debug_error(" remove %s failed with %s\n", filename, str_error); } - g_free(filename); - sigprocmask(SIG_SETMASK, &old_mask, NULL); /* signal unblock ------------ */ diff --git a/packaging/libmm-session.spec b/packaging/libmm-session.spec index b1935f5..375bdda 100644 --- a/packaging/libmm-session.spec +++ b/packaging/libmm-session.spec @@ -1,6 +1,6 @@ Name: libmm-session Summary: Multimedia Session Library -Version: 0.2.9 +Version: 0.2.10 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 |