aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2014-10-21 17:46:06 +0200
committerHans Nilsson <[email protected]>2014-10-21 17:46:06 +0200
commitadaab47c48627ae3971cdefca93d1acb3a1605de (patch)
treeb1839ec552cbd6e37c5b6bdf55259a035659bdfd /lib/ssh
parentc07fd2c3fdc14a9ccf33b604b397e581b4d52893 (diff)
downloadotp-adaab47c48627ae3971cdefca93d1acb3a1605de.tar.gz
otp-adaab47c48627ae3971cdefca93d1acb3a1605de.tar.bz2
otp-adaab47c48627ae3971cdefca93d1acb3a1605de.zip
ssh: avoid terminated but not deleted children to be counted.
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_acceptor.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_acceptor.erl b/lib/ssh/src/ssh_acceptor.erl
index 2645bee3f6..6c443eeb9c 100644
--- a/lib/ssh/src/ssh_acceptor.erl
+++ b/lib/ssh/src/ssh_acceptor.erl
@@ -141,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)
]).