check fcntl() return value
This commit is contained in:
parent
06fe1d34f3
commit
7680ebcbe1
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user