From: Stefan Schmidt Date: Thu, 11 Sep 2014 10:30:19 +0000 (+0200) Subject: cserve2: Check retrun of fcntl and print a message if we fail. X-Git-Tag: v1.12.0-alpha1~375 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68ba2f67916b17d31fdeab298b40657659ff45b5;p=platform%2Fupstream%2Fefl.git cserve2: Check retrun of fcntl and print a message if we fail. CID 1039707 --- diff --git a/src/lib/evas/cserve2/evas_cs2_client.c b/src/lib/evas/cserve2/evas_cs2_client.c index 981fcda4ff..2471c1f8e9 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;