stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=68ba2f67916b17d31fdeab298b40657659ff45b5

commit 68ba2f67916b17d31fdeab298b40657659ff45b5
Author: Stefan Schmidt <[email protected]>
Date:   Thu Sep 11 12:30:19 2014 +0200

    cserve2: Check retrun of fcntl and print a message if we fail.
    
    CID 1039707
---
 src/lib/evas/cserve2/evas_cs2_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/evas/cserve2/evas_cs2_client.c 
b/src/lib/evas/cserve2/evas_cs2_client.c
index 981fcda..2471c1f 100644
--- a/src/lib/evas/cserve2/evas_cs2_client.c
+++ b/src/lib/evas/cserve2/evas_cs2_client.c
@@ -185,7 +185,7 @@ _server_connect(void)
 #ifdef HAVE_FCNTL
    flags = fcntl(s, F_GETFD);
    flags |= FD_CLOEXEC;
-   fcntl(s, F_SETFD, flags);
+   if (fcntl(s, F_SETFD, flags) < 0) ERR("can't set CLOEXEC on fd");
 #endif
 
    remote.sun_family = AF_UNIX;

-- 


Reply via email to