[erlang-questions] wait_on_pids?

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Wed Jul 4 15:49:53 CEST 2007


wait_on_pids(Pids) ->
  [receive {'DOWN',Ref,_,_,_} -> true end || 
    Ref <- [erlang:monitor(process,P) || P <- Pids]].

BR,
Ulf W 

> -----Original Message-----
> From: erlang-questions-bounces@REDACTED 
> [mailto:erlang-questions-bounces@REDACTED] On Behalf Of Joel Reymont
> Sent: den 4 juli 2007 13:54
> To: Erlang Questions
> Subject: [erlang-questions] wait_on_pids?
> 
> Is there a library function that given a list of process ids 
> can wait for all of them to exit?
> 
> 	Thanks, Joel
> 
> --
> http://topdog.cc      - EasyLanguage to C# compiler
> http://wagerlabs.com  - Blog
> 
> 
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 



More information about the erlang-questions mailing list