From e7895959e7bbafb4d1f5bfe575c6099297ffac16 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 8 Oct 2013 13:37:54 -0400 Subject: [PATCH] initialize kid_count to 0; minor log tweak Signed-off-by: Bill Erickson --- SIPServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SIPServer.pm b/SIPServer.pm index 3448ed5..d41c09c 100644 --- a/SIPServer.pm +++ b/SIPServer.pm @@ -167,7 +167,7 @@ sub process_request { # Multiplex. my %kid_hash; -my $kid_count; +my $kid_count = 0; sub REAPER { for (keys(%kid_hash)) { @@ -296,7 +296,7 @@ sub mux_input { sub mux_close { my ($self, $mux, $fh) = @_; delete $active_connections{''.$fh}; - syslog("LOG_DEBUG", "multi: cleaning up child: $fh; ". + syslog("LOG_DEBUG", "multi: mux_close cleaning up child: $fh; ". scalar(keys %active_connections)." remain"); } -- 2.11.0