evas/cserve2: Check return value of fcntl

Print an error when not able to set non-blocking but continue.

CID 1039707
This commit is contained in:
Stefan Schmidt 2014-09-04 11:19:31 +02:00
parent 61efcf37f8
commit 7e2d60a63c
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ _server_connect(void)
}
#ifdef HAVE_FCNTL
fcntl(s, F_SETFL, O_NONBLOCK);
if (fcntl(s, F_SETFL, O_NONBLOCK) < 0) ERR("can't set non-blocking fd");
#endif
socketfd = s;