http://qs321.pair.com?node_id=35568

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I need to run about 5 or 6 processes reading separate fifo entries in an NFS directory.
It seems that if more than one reader reads a fifo (created via mknod), the data gets mangled.
I tried using msgget, etc., but that fails, apparently due to poor msg.ph files, and I'm not allowed to install a C compiler in this environment, so I can't even install the IPCSysV module.
Any ideas?

Replies are listed 'Best First'.
Re: IPC recommendations needed
by dl748 (Initiate) on Jun 02, 2001 at 03:43 UTC
    I would do this:
    Every time you fork, create a socketpair. This gets passed to the child. You can use this socket to pass data back and forth. All it is is an unnamed pipe. You'd communicate to it as you would a socket. I've done this many times.