Pipes question.

ury segal ury at cosmos.huji.ac.il
Sun Apr 21 16:37:28 AEST 1991


I wrote a program that opens a pipe, forks n times and writes some string
n times to this pipe. the chields suppose to read the string and printf it.
The problem: the first chield gets all the string. the second get only the last byte. the nexy one - last 2 bytes,and on - the strlen(string)th
chield gets the whole string - and the next one gets only the last byte.

Can someone e-mail me what happens there ??

--ury





More information about the Comp.unix.programmer mailing list