aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2011-10-17 11:32:59 +0200
committerBjörn Gustavsson <bjorn@erlang.org>2011-11-29 14:08:39 +0100
commit3a605907b3f17ce7d96e572aabf3ba789ec4c23b (patch)
tree53a8c5c169233a57f0f6e547db976d7abdb05122
parent7a6249a44c80546f13d95732a0fb92e629913263 (diff)
downloadotp-3a605907b3f17ce7d96e572aabf3ba789ec4c23b.tar.gz
otp-3a605907b3f17ce7d96e572aabf3ba789ec4c23b.tar.bz2
otp-3a605907b3f17ce7d96e572aabf3ba789ec4c23b.zip
user_sup: Eliminate use of tuple fun
-rw-r--r--lib/kernel/src/user_sup.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/user_sup.erl b/lib/kernel/src/user_sup.erl
index 35b7ff0cfe..7c97da189a 100644
--- a/lib/kernel/src/user_sup.erl
+++ b/lib/kernel/src/user_sup.erl
@@ -45,7 +45,7 @@ init([]) ->
Pid = start_slave(Master),
{ok, Pid, Pid};
{M, F, A} ->
- case start_user({M, F}, A) of
+ case start_user(M, F, A) of
{ok, Pid} ->
{ok, Pid, Pid};
Error ->
@@ -95,8 +95,8 @@ terminate(_Reason, UserPid) ->
%% is guaranteed that the user is started.
%%-----------------------------------------------------------------
-start_user(Func,A) ->
- apply(Func, A),
+start_user(Mod, Func, A) ->
+ apply(Mod, Func, A),
wait_for_user_p(100).
wait_for_user_p(0) ->