help on interprocess communication
Fred Christianson
flc at n.sp.cs.cmu.edu
Tue Feb 20 01:24:09 AEST 1990
In article <6456 at cps3xx.UUCP> bruey at cpsin2.cps.msu.edu () writes:
>
>Can any of you brainy netlanders give me a hint why this
>doesn't work?
...
> write(filedes[1],buf,14);
> if(fork())
> {
> read(filedes[1],buf1,14);
^
|
0 ---
> printf("in second %s \n",buf1);
> }
> }
>
>}
filedes[1] is for writing and filedes[0] is for reading. I haven't used
pipes for a while, but that's what my man page says.
----
Fred
More information about the Comp.lang.c
mailing list