Newsgroups: comp.parallel.pvm
From: poirriez@lotus.ens.fr (Vincent Poirriez)
Subject: Re: HELP, spawn looping
Organization: Ecole Normale Superieure, PARIS, France
Date: 13 Jul 1994 08:07:10 GMT
Message-ID: <3007be$ib2@nef.ens.fr>

>I try to be more precise:
>
> I have a task "bindings".
>
> It work fine if I execute it as a shell command.
>
> Now, if I spawn it in the pvm console or
> in a C program, then it enters in a loop,
> each executable "bindings" forks and executes
> a new "bindings" which does the same ...
>
> I assure that bindings contains no spawn.
>
> The only pvm primitives used in bindings are
> pvm_recv and pvm_upk.  

More over, when I halt pvm and restart, if I
spawn an other task which as nothing to do
with "bindings", bindings is restarted and
loop again

pvm> spawn bindings
1 successful
t40005
pvm> ps -a
                    HOST      TID      FLAG COMMAND
                  nestor    40005     0x4/c bindings       
                  nestor    40006     0x4/c bindings       
                  nestor    40007     0x4/c bindings       
                  nestor    40008     0x4/c bindings       
                  nestor    40009     0x4/c bindings       
pvm> halt
libpvm [t40001]: mxfer() EOF on pvmd sock
[1]    Done                 pvmd hostfile
nestor:mv bindings bindings.old
nestor:pvmd hostfile &
[1] 9543
nestor:/usr/tmp/aaaa09543
pvm
pvmd already running.
pvm> spawn liens
1 successful
t40002
pvm> ps -a
                    HOST      TID      FLAG COMMAND
                  nestor    40002     0x4/c liens    
pvm> reset
pvm> quit

pvmd still running.
nestor:mv bindings.old bindings
nestor:!p
pvm
pvmd already running.
pvm> 
ps -a
                    HOST      TID      FLAG COMMAND
pvm> spawn liens
1 successful
t40005
pvm> ps -a
                    HOST      TID      FLAG COMMAND
                  nestor        0       0x0 -           
                  nestor    40005     0x4/c liens    
                  nestor    40006     0x4/c bindings       
                  nestor    40007     0x4/c bindings       
                  nestor    40008     0x4/c bindings       
                  nestor    40009       0x0 bindings 


If someone can help.

 Vincent Poirriez

