Newsgroups: comp.parallel.pvm
From: vanvoors@boreas.src.honeywell.com (Brian VanVoorst)
Subject: Re: fork() and PVM
Organization: Honeywell Technology Center
Date: 22 Sep 1995 13:58:25 CDT
Message-ID: <43v10h$fuv@moon.src.honeywell.com>

|> Hi,
|>   I'd like to fork() a child process from a parent attached to PVM,
|> and then have the parent and child talk to each other using PVM
|> routines.  Is this even possible, and if so, how?

This isn't what you asked but if you had the parent use the spawn call
this would work a lot more smoothly, but I am sure you have your reasons for 
fork.

I spent a day or two with some friends trying different things with fork and
pvm programs.  Our efforts were different, we wanted the child process to 
intercept the parents messages.  

From what I remember, if you fork before you register with PVM then the parent
and child should (might, could be) seen as two different tasks by PVM.  If you
fork after being registered then they both have the same tids, etc, and 
I don't think you will have much luck with the communication.

However I'd really try and use the spawn command.

Good luck,
Brian VanVoorst
vanvoors@src.honeywell.com

