Browse Source

fix crash in gproc_pool:defined_workers/1

Ulf Wiger 11 years ago
parent
commit
a1085aa55d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/gproc_pool.erl

+ 1 - 1
src/gproc_pool.erl

@@ -268,7 +268,7 @@ active_workers(Pool) ->
 %% @end
 defined_workers(Pool) ->
     K = ?POOL(Pool),
-    [{N, Pos, gproc:get_value(?POOL_WRK(Pool, N))}
+    [{N, Pos, gproc:get_value(?POOL_WRK(Pool, N), shared)}
      || {N, Pos} <- get_workers_(K)].
 
 %% @spec worker_pool(Pool::any()) -> [integer() | {Name, Pos}]