forked from enlightenment/efl
efl_io_closer - fix warning about error print
lazy removal of fcntl without fixing up error print... fixed.
This commit is contained in:
parent
7282716820
commit
c6eacd6f27
|
@ -58,7 +58,7 @@ _efl_io_closer_fd_efl_io_closer_close_on_exec_set(Eo *o, Efl_Io_Closer_Fd_Data *
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
(void)o;
|
(void)o;
|
||||||
#else
|
#else
|
||||||
int flags, fd;
|
int fd;
|
||||||
Eina_Bool old = pd->close_on_exec;
|
Eina_Bool old = pd->close_on_exec;
|
||||||
|
|
||||||
pd->close_on_exec = close_on_exec;
|
pd->close_on_exec = close_on_exec;
|
||||||
|
@ -71,7 +71,7 @@ _efl_io_closer_fd_efl_io_closer_close_on_exec_set(Eo *o, Efl_Io_Closer_Fd_Data *
|
||||||
|
|
||||||
if (!eina_file_close_on_exec(fd, close_on_exec))
|
if (!eina_file_close_on_exec(fd, close_on_exec))
|
||||||
{
|
{
|
||||||
ERR("fcntl(%d, F_SETFD, %#x): %s", fd, flags, strerror(errno));
|
ERR("eina_file_close_on_exec(%d) failed", fd);
|
||||||
pd->close_on_exec = old;
|
pd->close_on_exec = old;
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue