check fcntl() return value

This commit is contained in:
Christian Grothoff 2016-06-02 09:36:24 +02:00
parent 06fe1d34f3
commit 7680ebcbe1

View File

@ -791,7 +791,9 @@ main (int argc,
fh = -1;
}
flags |= FD_CLOEXEC;
fcntl (fh, F_SETFD, flags);
if (0 != fcntl (fh, F_SETFD, flags))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR,
"fcntl");
}
/* consider unix path */