diff options
author | Myungki Lee <mk5004.lee@samsung.com> | 2016-03-22 16:33:01 +0900 |
---|---|---|
committer | Myungki Lee <mk5004.lee@samsung.com> | 2016-03-22 16:33:01 +0900 |
commit | d9b6cf6137ab4f08dc0b0666f85b7a73d6adcd6f (patch) | |
tree | af7cdd3b8ab42411dba1980133b3f8accd340440 | |
parent | c85f50a5769e2a62432454faf208c7c1c49cba3b (diff) | |
download | message-port-d9b6cf6137ab4f08dc0b0666f85b7a73d6adcd6f.tar.gz message-port-d9b6cf6137ab4f08dc0b0666f85b7a73d6adcd6f.tar.bz2 message-port-d9b6cf6137ab4f08dc0b0666f85b7a73d6adcd6f.zip |
Use thread-safe functionsubmit/tizen/20160322.121104accepted/tizen/wearable/20160323.013537accepted/tizen/tv/20160323.013517accepted/tizen/mobile/20160323.013502accepted/tizen/ivi/20160323.013554
Change-Id: I78a659bba1153cd7d2b1e74f989729d3a3073888
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rwxr-xr-x | src/message-port.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/message-port.c b/src/message-port.c index dacd5ae..3764a4d 100755 --- a/src/message-port.c +++ b/src/message-port.c @@ -715,6 +715,7 @@ static bool send_message(GVariant *parameters, GDBusMethodInvocation *invocation message_port_local_port_info_s *mi; message_port_callback_info_s *callback_info; int local_reg_id = 0; + char buf[1024]; g_variant_get(parameters, "(ssbbssbus)", &local_appid, &local_port, &local_trusted, &bi_dir, &remote_appid, &remote_port, &remote_trusted, &len, &raw); @@ -791,7 +792,7 @@ static bool send_message(GVariant *parameters, GDBusMethodInvocation *invocation callback_info->gio_read = g_io_channel_unix_new(fd); if (!callback_info->gio_read) { - _LOGE("Error is %s\n", strerror(errno)); + _LOGE("Error is %s\n", strerror_r(errno, buf, sizeof(buf))); __callback_info_free(callback_info); return -1; } |