in reply to Need help finding cause of leaking file handlers

You have posted lots of code.

What steps have you taken to try to isolate the problem?

You still load lots of modules that you haven't shown us:

with 'MyOpenSSH', 'MyLogger2', 'DownloadDir';

Which of these modules is unneccessary? Can you remove some of them and makes that the problem persist or go away?

Maybe your logger opens a new filehandle for each instance.

Please reduce your code to something of about 20 or 30 lines at most that still reproduces the problem.

Replies are listed 'Best First'.
Re^2: Need help finding cause of leaking file handlers
by nysus (Parson) on Mar 28, 2017 at 16:30 UTC

    Corion strikes again! I disabled the MyLogger2 module and that turned out to be the culprit. It opens a file handle to append to a log file. I didn't even stop to think about that. Thanks for the help!

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks