| Author |
Message |
< Advanced Erlang/OTP ~ Process hangs when using supervisor:which_children |
| qoocku |
Posted: Thu May 07, 2009 10:01 am |
|
|
|
User
Joined: 31 Mar 2008
Posts: 10
Location: Poland
|
Hi List!
supervisor:which_children called inside a function that starts supervisor's child process never returns and the child process initialization hangs (I use R13B).
Is it normal behavior?
If so what is the proper way to find out inside of just-being initialized supervised process about pids of all currently running supervised processes of this specific supervisor?
<<"Damian">>. |
|
|
| Back to top |
|
| odi |
Posted: Thu May 07, 2009 1:20 pm |
|
|
|
Joined: 19 Feb 2009
Posts: 9
|
hi Damian,
It is normal because when you try to ask supervisor for a list of his childs he is already busy by your call to create the new child and it all blocks;)
To retrieve list of childs you can try using sys:get_status(process_name).
have a nice day,
Kuba |
|
|
| Back to top |
|
| ngunder |
Posted: Wed Dec 30, 2009 5:07 pm |
|
|
|
Joined: 01 Aug 2007
Posts: 3
Location: Denmark
|
What if you make a call to supervisor:start_child(), and before returning from this function on the stack you call another start_child for another module?
I have had the strange behavior where my child process is trying to get the same supervisor process to spawn another dynamic child during its own spawn. This appears to also cause a deadlock.
Although not yet tested, the clear resolution is probably to run two supervisors with a third overload supervisor.
Sort of a pain when you just need one supervisor though.
This appears to be related to your issue. |
|
|
| Back to top |
|
| Allan |
Posted: Sun Jan 03, 2010 8:08 pm |
|
|
|
User
Joined: 29 Jun 2009
Posts: 30
|
I think, the developers of OTP did not intended supervisors to be used as a sort of "process dictionary". They are intended to be used only as a standardized way to respond to abnormal process termination and manage all processes belonging to (part of) an application as one unit.
Use your own (most likely gen_server based) process registry for managing information about worker processes of your application.
Other people interested in generic process registries also liked to read about the Gen_Server Behaviour in the Erlang OTP documentation. |
|
|
| Back to top |
|
| wuji |
Posted: Thu Aug 16, 2012 8:22 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
apartment complex in Deerfield Beach, Fla. One boy poured rubbing rubbing imitation designer *beep* rubbing alcohol on Brewer, and another flicked a lighter, setting
ablaze.Brewer survived the attack by jumping into a nearby pool, pool, imitation designer *beep* pool, but not before second- and third-degree burns covered nearly
of his body.While Bent played no physical role in the the [h4]cheap Ralph Lauren[/h4] the attack, the prosecution accused him of orchestrating it in
of cold-blooded revenge against Brewer. In closing arguments, Assistant State State cheap designer *beep* State Attorney Maria Schneider stressed to the jury the disputes
Bent and Brewer in the day leading up to the the [h3]jordan 6 olympic 2012[/h3] the attack.The previous day, Brewer's parents reported Bent to the
for allegedly attempting to steal a family bicycle. Brewer said said imitation designer *beep* said he stayed home from school on Oct. 12 fearing
retaliation by Bent, who he testified Thursday was targeting him him knockoff designer *beep* him because he refused to buy drug paraphernalia from Bent.Denver
17, who is serving eight years in prison for pouring pouring jordan 6 olympic pouring the alcohol on Brewer, testified Wednesday that Bent offered |
|
|
| Back to top |
|
| wantjersey |
Posted: Fri Aug 17, 2012 6:11 am |
|
|
|
User
Joined: 17 Aug 2012
Posts: 10
|
| Jersey City is the second largest city in New cheap nhl jerseys, after Newark, and is home to around 250,000 people. Close to New York; the city is a haven for businesses that need to be close to the financial centre but who can't afford the sky high rents that come with having an office in such an wholesale nhl jerseys illustrious location. |
|
|
| Back to top |
|
|
|