From: Georg Weissenbacher <georg.weissenbacher@altavista.net>
Newsgroups: comp.parallel.mpi
Subject: Re: How to kill mpi processes?
Date: Fri, 28 Aug 1998 14:56:55 +0200
Organization: Graz University of Technology, Austria
Message-Id: <35E6A917.7DDCC65A@altavista.net>
References: <35E6741F.15A408CF@altavista.net>
    <6s5pg7$has$1@walter-fddi.cray.com>
Reply-To: georg.weissenbacher@altavista.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Eric Salo wrote:
> 
> > How can I kill mpi-programs in a C-program
> > (UNIX, I'm using mpich 1.1) when the only thing
> > I know is the process ID of the associated
> > mpirun? I tried to kill mpirun with SIGKILL or
> > SIGINT, but the mpi-processes keep running..
> 
> This is completely dependent on the specific implementation
> that you are using. Under our implementation, for example,
> sending a SIGINT to mpirun (ctrl-c is the easiest way) will
> in fact kill the entire cluster-wide job.

If I start mpirun from the command line and type CTRL-C
in the console, all jobs are killed. So I thought, simulating
CTRL-C by sending SIGINT to mpirund would work, but it does
not. Is there any difference between foreground and background
processes? How can I make my program a foreground process when
I execv it? Perhaps that will help..

How did you start your mpirun? (execv?)

thx, Georg

