ENVIRONMENT:
SunOS 4.1.3, SparcIPC, X11R5, with olwm.
WHAT I AM TRYING TO DO:
I have a simple application, in which I am forking a
child, closing its standard output, which is redirected
to a pipe. Parent waits for input using an XtAppAddinput,
which effectively sets something rolling when something
begins to come through read end of pipe. I am using
execvp to execute some simple programs, which generate
under 4096 bytes of data(so pipe should not choke!).
child will pass its o/p to parent, which will simply read the
data and display it.
PROBLEMS I FACE:
(1) If child tries to write really large amounts of data
(i wish to be able to write unlimited amounts!), it
seems to block.
(2) First write into pipe by child, if the size is small, is
no problem. But subsequent (small sized) writes, seem to
have some kind of a phase lag! i.e., write number 3 triggers
output due to write number 2(in general, write i+1 triggers
output of write i.
Any reply(preferably email, though posting here will also
do) will be apperciated!
Thanks!
Vidyaranya.