aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_acceptor.erl
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2014-10-23 11:31:11 +0200
committerHenrik Nord <[email protected]>2014-10-23 11:31:11 +0200
commit4dd483c187317ace77d052eec43cc34efb9b00a3 (patch)
tree43e0d35e8d442c1731bddcb7bdb47450f4ec7f0a /lib/ssh/src/ssh_acceptor.erl
parentf5fab7691de210fec10e5c5d9db67710958797a3 (diff)
parent9f0477e13bb8819ee252d2b8834c1411f02a9cb8 (diff)
downloadotp-4dd483c187317ace77d052eec43cc34efb9b00a3.tar.gz
otp-4dd483c187317ace77d052eec43cc34efb9b00a3.tar.bz2
otp-4dd483c187317ace77d052eec43cc34efb9b00a3.zip
Merge branch 'maint'
Diffstat (limited to 'lib/ssh/src/ssh_acceptor.erl')
-rw-r--r--lib/ssh/src/ssh_acceptor.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_acceptor.erl b/lib/ssh/src/ssh_acceptor.erl
index 7302196674..6c443eeb9c 100644
--- a/lib/ssh/src/ssh_acceptor.erl
+++ b/lib/ssh/src/ssh_acceptor.erl
@@ -22,7 +22,8 @@
-module(ssh_acceptor).
%% Internal application API
--export([start_link/5]).
+-export([start_link/5,
+ number_of_connections/1]).
%% spawn export
-export([acceptor_init/6, acceptor_loop/6]).
@@ -140,5 +141,6 @@ handle_error(Reason) ->
number_of_connections(SystemSup) ->
length([X ||
{R,X,supervisor,[ssh_subsystem_sup]} <- supervisor:which_children(SystemSup),
+ is_pid(X),
is_reference(R)
]).