[erlang-questions] supervisor children's pid

Vance Shipley <>
Wed May 18 13:57:16 CEST 2011


On Wed, May 18, 2011 at 09:34:22AM +0100, Jachym Holecek wrote:
}  Nice trick, but there is no guarantee process' siblings will already be
}  started after some arbitrary timeout -- try this on a heavily loaded
}  system... it's just not safe.

You try it.  I already have.

}  > }  is this the best strategy to achieve this?
}  > 
}  > Yes, use supervisor:which_children/1 to learn the siblings.
}  
}  No, if he's using anything other than one_for_all strategy the Pids
}  he learns this way may become stale in the future.

My example demonstrates learning the siblings at startup.
Monitoring changes is another question.

-- 
	-Vance



More information about the erlang-questions mailing list