Enlightenment CVS committal
Author : onefang
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore
Modified Files:
ecore_exe.c
Log Message:
Brain dead, quick'n'dirty pipe writer, Strictly for testing purposes.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_exe.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ecore_exe.c 9 Nov 2005 14:09:28 -0000 1.17
+++ ecore_exe.c 9 Nov 2005 20:01:32 -0000 1.18
@@ -249,8 +249,17 @@
* 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 could just get huge
+ *
+ * But for now, a quick and dirty test implementation -
*/
- return 0;
+ ssize_t outsize = write(exe->child_fd_write, data, size);
+ if (outsize == -1)
+ {
+ /* FIXME: should check errno to see what went wrong. */
+ return 0;
+ }
+ else
+ return 1;
}
/**
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs