aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2011-04-28 11:51:57 +0200
committerHenrik Nord <[email protected]>2011-04-28 11:52:03 +0200
commit269f663aa051a1de83ee51d46a09cf62cde3d55b (patch)
tree7ba3f6d0108a6c4f52fc432500345120ec28e1eb /lib/stdlib
parent35738703648e2508ef26fb3cc20cff0e0ffee596 (diff)
parenta9f4cbcbc02b38f00bde3fa9ac7456702ac7675e (diff)
downloadotp-269f663aa051a1de83ee51d46a09cf62cde3d55b.tar.gz
otp-269f663aa051a1de83ee51d46a09cf62cde3d55b.tar.bz2
otp-269f663aa051a1de83ee51d46a09cf62cde3d55b.zip
Merge branch 'km/pool_connect-to-running-nodes' into dev
* km/pool_connect-to-running-nodes: Change pool module to attempt to attach to nodes that are already running OTP-9244
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/pool.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stdlib/src/pool.erl b/lib/stdlib/src/pool.erl
index 7f5f23e26d..a3c9927ee9 100644
--- a/lib/stdlib/src/pool.erl
+++ b/lib/stdlib/src/pool.erl
@@ -95,6 +95,9 @@ pspawn_link(M, F, A) ->
start_nodes([], _, _) -> [];
start_nodes([Host|Tail], Name, Args) ->
case slave:start(Host, Name, Args) of
+ {error, {already_running, Node}} ->
+ io:format("Can't start node on host ~w due to ~w~n",[Host, {already_running, Node}]),
+ [Node | start_nodes(Tail, Name, Args)];
{error, R} ->
io:format("Can't start node on host ~w due to ~w~n",[Host, R]),
start_nodes(Tail, Name, Args);