cserve2: Check retrun of fcntl and print a message if we fail.

CID 1039707
This commit is contained in:
Stefan Schmidt 2014-09-11 12:30:19 +02:00
parent 2358e63d60
commit 68ba2f6791
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ _server_connect(void)
#ifdef HAVE_FCNTL
flags = fcntl(s, F_GETFD);
flags |= FD_CLOEXEC;
fcntl(s, F_SETFD, flags);
if (fcntl(s, F_SETFD, flags) < 0) ERR("can't set CLOEXEC on fd");
#endif
remote.sun_family = AF_UNIX;