forked from enlightenment/efl
ecore_exe: do not try to send 0 bytes
Summary: This action is meaningless when communicating with child process. Reviewers: barbieri Reviewed By: barbieri Subscribers: jpeg, vtorri, cedric, raster Differential Revision: https://phab.enlightenment.org/D4510
This commit is contained in:
parent
f12a08ab15
commit
792acc9f9e
|
@ -126,6 +126,8 @@ ecore_exe_send(Ecore_Exe *obj,
|
|||
if (!efl_isa(obj, MY_CLASS))
|
||||
return EINA_FALSE;
|
||||
|
||||
EINA_SAFETY_ON_TRUE_RETURN_VAL(size == 0, EINA_TRUE);
|
||||
|
||||
if (exe->close_stdin)
|
||||
{
|
||||
ERR("Ecore_Exe %p stdin is closed! Cannot send %d bytes from %p",
|
||||
|
|
|
@ -560,7 +560,7 @@ _impl_ecore_exe_send(Ecore_Exe *obj,
|
|||
BOOL res;
|
||||
|
||||
res = WriteFile(exe->pipe_write.child_pipe_x, data, size, &num_exe, NULL);
|
||||
if (size && !res || num_exe == 0)
|
||||
if (!res || num_exe == 0)
|
||||
{
|
||||
ERR("Ecore_Exe %p stdin is closed! Cannot send %d bytes from %p",
|
||||
obj, size, data);
|
||||
|
|
Loading…
Reference in New Issue