Newsgroups: comp.parallel.pvm
From: Travis Wilson <trav@autodyn.com>
Reply-To: trav@autodyn.com
Subject: Re: Help with pvm_halt
Date: Wed, 15 Jul 1998 15:26:22 -0700
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <35AD2C8E.29A2@autodyn.com>

Kevin Parker wrote:
> 
> I am using pvm3.4 on a unix platform. I am calling pvmfhalt() from my
> main to terminate the slaves and pvm daemons. When I call pvmfhalt() it
> causes my main program to also terminate.

That's pretty annoying, eh? You can call pvmfexit() first, which is
supposed to disconnect your program from the pvmd, but then when you
call pvmfhalt() it re-enrolls you, so your process gets shut down.

The workaround I use is to simply shut down the daemon "manually" via a
shell command in my program. In Fortran that would be

CALL CSYS('echo halt | pvm > /dev/null')

Of course you should use pvmfexit() first. I don't know how clean this
method is, but it works.

Travis Wilson
trav@autodyn.com

