From: Ji-hoon Lee Date: Fri, 27 Sep 2013 07:10:11 +0000 (+0900) Subject: Prevent fix X-Git-Tag: accepted/tizen/generic/20140310.074606~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a95d41ed50410073bf19963b581a4116994bd3b;p=platform%2Fcore%2Fuifw%2Fisf.git Prevent fix Change-Id: I5de441d928ba44b1eba1abe1974990538b817f27 --- diff --git a/ism/src/scim_socket.cpp b/ism/src/scim_socket.cpp index 6d10b44..753e103 100644 --- a/ism/src/scim_socket.cpp +++ b/ism/src/scim_socket.cpp @@ -460,7 +460,12 @@ public: // Backup the current flag to restore after non-blocking connect() try int flags = fcntl (m_id, F_GETFL, 0); - fcntl (m_id, F_SETFL, flags | O_NONBLOCK); + if (fcntl (m_id, F_SETFL, flags | O_NONBLOCK) == -1) { + char buf[256] = {0}; + snprintf (buf, sizeof (buf), "time:%ld pid:%d ppid:%d %s %s fcntl() failed, %d\n", + time (0), getpid (), getppid (), __FILE__, __func__, errno); + isf_save_log (buf); + } char buf[256] = {0}; snprintf (buf, sizeof (buf), "time:%ld pid:%d ppid:%d %s %s trying connect() to %s\n",