evas cserve2 - check return of fcntl
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 1 Sep 2014 10:21:33 +0000 (19:21 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 1 Sep 2014 10:40:47 +0000 (19:40 +0900)
fix CID 1039707

src/bin/evas/evas_cserve2_debug.c

index 9534fd6202ea036ce8a958a3fa3ea34acafa53c6..7f879ddb79d231f20325135e7d5a5bcd29fc9ec5 100644 (file)
@@ -79,7 +79,7 @@ _server_connect(void)
         return EINA_FALSE;
      }
 
-   fcntl(s, F_SETFL, O_NONBLOCK);
+   if (fcntl(s, F_SETFL, O_NONBLOCK) < 0) ERR("fcntl failed");
 
    socketfd = s;