SV: Killing Supervisor

Samuel Rivas samuel@REDACTED
Fri Apr 28 15:05:59 CEST 2006


Ulf Wiger (AL/EAB) wrote:
>  
> 
> Samuel Rivas wrote:
> >
> > Ulf Wiger (AL/EAB) wrote:
> > > Note also that the behaviours know which process is the parent, so 
> > > they are not so easily fooled. That's one reason why the first exit 
> > > might need to be exit(Top, kill) in some cases.
> >  
> >   Can they be fooled in any way? Parent pid is kept in 
> > gen_server main loop ... (Just curious) 
> 
> Well, sure:
> 3> {dictionary, Dict} = process_info(whereis(sasl_sup), dictionary).
> [... snipped ...]

  Wicked! :)

-- 
	Samuel



More information about the erlang-questions mailing list