[erlang-questions] Newbie question--workers starting supervisors

Mazen mazen@REDACTED
Tue Apr 17 20:54:00 CEST 2007


True! Yes you can... but the argument that you can't know which process that crashed is still valid... however you have a very good point! And should probably have been the way I should have made it ^^

On the other hand the supervisor forces you to do any cleanup in the start function that you configured in the childspec which can be a hassle because perhaps you want to clean something up and start up the new child in a known state.

Actually that would be a good idea... the OTP team should implement a Cleanup function that is run if a child crashes :D

/M


Adam wrote:
Well, you could alternatively create 10 unique child specs?

Cheers!
Adam

(end of quote)

_________________________________________________________
Post sent from http://www.trapexit.org



More information about the erlang-questions mailing list