diff options
author | Hans Nilsson <[email protected]> | 2014-10-21 17:46:06 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2014-10-21 17:46:06 +0200 |
commit | adaab47c48627ae3971cdefca93d1acb3a1605de (patch) | |
tree | b1839ec552cbd6e37c5b6bdf55259a035659bdfd /lib/ssh/src | |
parent | c07fd2c3fdc14a9ccf33b604b397e581b4d52893 (diff) | |
download | otp-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/src')
-rw-r--r-- | lib/ssh/src/ssh_acceptor.erl | 1 |
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) ]). |