forked from enlightenment/efl
Brain dead, quick'n'dirty pipe writer, Strictly for testing purposes.
SVN revision: 18402
This commit is contained in:
parent
0bb989f1f6
commit
ea18787d33
|
@ -249,9 +249,18 @@ ecore_exe_pipe_write(Ecore_Exe *exe, void *data, int size)
|
||||||
* its own write buffer in process space - giving us potentially huge
|
* its own write buffer in process space - giving us potentially huge
|
||||||
* buffers, so synchronisation needs to be done at a higher level here as
|
* buffers, so synchronisation needs to be done at a higher level here as
|
||||||
* buffers could just get huge
|
* buffers could just get huge
|
||||||
|
*
|
||||||
|
* But for now, a quick and dirty test implementation -
|
||||||
*/
|
*/
|
||||||
|
ssize_t outsize = write(exe->child_fd_write, data, size);
|
||||||
|
if (outsize == -1)
|
||||||
|
{
|
||||||
|
/* FIXME: should check errno to see what went wrong. */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the string tag for the given process handle
|
* Sets the string tag for the given process handle
|
||||||
|
|
Loading…
Reference in New Issue