diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2014-09-11 12:30:19 +0200 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2014-09-11 12:33:21 +0200 |
commit | 68ba2f67916b17d31fdeab298b40657659ff45b5 (patch) | |
tree | 465fbe6a2c54732795062f6ac1f473801929c4b8 /src/lib/evas/cserve2 | |
parent | 2358e63d60f0206c68897c44716eda1757a9a18b (diff) |
cserve2: Check retrun of fcntl and print a message if we fail.
CID 1039707
Diffstat (limited to 'src/lib/evas/cserve2')
-rw-r--r-- | src/lib/evas/cserve2/evas_cs2_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
185 | #ifdef HAVE_FCNTL | 185 | #ifdef HAVE_FCNTL |
186 | flags = fcntl(s, F_GETFD); | 186 | flags = fcntl(s, F_GETFD); |
187 | flags |= FD_CLOEXEC; | 187 | flags |= FD_CLOEXEC; |
188 | fcntl(s, F_SETFD, flags); | 188 | if (fcntl(s, F_SETFD, flags) < 0) ERR("can't set CLOEXEC on fd"); |
189 | #endif | 189 | #endif |
190 | 190 | ||
191 | remote.sun_family = AF_UNIX; | 191 | remote.sun_family = AF_UNIX; |