"Olivier Matt" <init64@kodee.org> wrote in message
news:slrnbh6637.ie.init64@risingstar.local.kodee.o rg...
> my problem follows :
> I have a father process which creates an unknown number of child
processes.
> Then, at unknown moments, it must then data to all of its children, and
> each child must read the message only once, but every must read it.
> So, it should behave like a pipe, excepted that each child must recieve
> the data. And if no child has been created, the data must be lost.
> Can you help me ? Advises ?
Create a pipe, UNIX stream socket, or TCP socket connection between the
parent and each child. Send the data over each connection.

Alternatively, you could keep appending the data to a file. Each child
could watch for the file to grow and read the new data. When the file gets
too big, you can write a message that each child would interpret to mean 'go
to file X'. After enough time, you can remove the old file.

There are any number of other ways, it all depends upon how much data
you're sending.

DS