diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2014-09-04 11:19:31 +0200 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2014-09-04 11:28:33 +0200 |
commit | 7e2d60a63cc78ab269e1eff020ee52165e54da19 (patch) | |
tree | e14f8fd01a5d2b87caaa5f3c090384fde4f6ce6a /src/lib/evas/cserve2 | |
parent | 61efcf37f8988428d19400d7be2488c6fadf430f (diff) |
evas/cserve2: Check return value of fcntl
Print an error when not able to set non-blocking but continue.
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 ee635dfad4..981fcda4ff 100644 --- a/src/lib/evas/cserve2/evas_cs2_client.c +++ b/src/lib/evas/cserve2/evas_cs2_client.c | |||
@@ -220,7 +220,7 @@ _server_connect(void) | |||
220 | } | 220 | } |
221 | 221 | ||
222 | #ifdef HAVE_FCNTL | 222 | #ifdef HAVE_FCNTL |
223 | fcntl(s, F_SETFL, O_NONBLOCK); | 223 | if (fcntl(s, F_SETFL, O_NONBLOCK) < 0) ERR("can't set non-blocking fd"); |
224 | #endif | 224 | #endif |
225 | 225 | ||
226 | socketfd = s; | 226 | socketfd = s; |