Newsgroups: comp.unix.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!bronze!cosmos.huji.ac.il!ury
From: ury@cosmos.huji.ac.il (ury segal)
Subject: Pipes question.
Message-ID: <1991Apr21.063728.21411@bronze.ucs.indiana.edu>
Keywords: Pipes, IPC
Sender: news@bronze.ucs.indiana.edu (USENET News System)
Reply-To: ury@cosmos.huji.ac.il (ury segal)
Organization: Hebrew U. Jerusalem, Israel
Date: Sun, 21 Apr 91 06:37:28 GMT
Lines: 10

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


