From: hjstein@bfr.co.il (Harvey J. Stein)
Newsgroups: comp.parallel.pvm
Subject: Re: Closing Spawned Jobs
Date: 21 Nov 1998 15:00:53 +0200
Organization: Unspecified Organization
Message-Id: <m27lwpyzcq.fsf@blinky.bfr.co.il>
References: <3655BAC3.1B721E81@ece.neu.edu>
Cc: hjstein@bfr.co.il


Srinidhi <srinidhi@ece.neu.edu> writes:

 > Hi,
 > 
 > I suspect this should be a common problem and any help is appreciated.
 > 
 > I spawn off a series of jobs on different machines on the network using
 > "pvm_spawn" and when the job is completed, I send a termination message
 > and they exit gracefully without a problem. However, if I manually kill
 > the job on the master using "Control-C", the spawned jobs continue to
 > run and essentially after a while stay stuck on "pvm_recv()" but the job
 > does not terminate. Halting PVM and restarting the daemon does not do
 > the trick either. Is there a way to kill all spawned jobs, maybe from
 > the pvm console?

Why don't you have each spawned job received end-of-task messages for
its parent & exit if such is received?

-- 
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il

