forked from enlightenment/efl
cserve2: Check retrun of fcntl and print a message if we fail.
CID 1039707
This commit is contained in:
parent
2358e63d60
commit
68ba2f6791
|
@ -185,7 +185,7 @@ _server_connect(void)
|
||||||
#ifdef HAVE_FCNTL
|
#ifdef HAVE_FCNTL
|
||||||
flags = fcntl(s, F_GETFD);
|
flags = fcntl(s, F_GETFD);
|
||||||
flags |= FD_CLOEXEC;
|
flags |= FD_CLOEXEC;
|
||||||
fcntl(s, F_SETFD, flags);
|
if (fcntl(s, F_SETFD, flags) < 0) ERR("can't set CLOEXEC on fd");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
remote.sun_family = AF_UNIX;
|
remote.sun_family = AF_UNIX;
|
||||||
|
|
Loading…
Reference in New Issue