[mpich2-dev] Parent terminates when the spawned child terminates

Pavan Balaji balaji at mcs.anl.gov
Thu Dec 16 09:36:28 CST 2010


On 12/16/2010 06:26 AM, Suraj Prabhakaran wrote:
>>> If you see here, the child's first message will be displayed while the
>>> second printf will not be displayed! Which shows that it cant get the parent
>>> anymore. And when a exit() happens abruptly, it shouldn't affect the parent
>>> rite (since they now dont have a common communicator, and without any auto
>>> clean option) ?
>>> Please correct me if I am wrong.
>>>
>> I believe you are right.  For this program, at child exit() time
>> parent and child are disconnected, and I understand the MPI standard
>> says that the parent should not be affected. Of course, I'm not a MPI
>> lawyer, and perhaps I misunderstood the wording...
> That implies that its a bug? I would benefit from a fix for this..

No, AFAICT the MPI standard doesn't make such claim for spawned 
processes (unlike applications connected using connect/accept). If you 
want one process dying to not kill the remaining processes, you should 
use -disable-auto-cleanup.

  -- Pavan

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich2-dev mailing list