forked from enlightenment/efl
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:
parent
61efcf37f8
commit
7e2d60a63c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue