|No such thing as a small change|
Debugging forking scripts in screenby harleypig (Monk)
|on Feb 09, 2007 at 01:09 UTC||Need Help??|
harleypig has asked for the
wisdom of the Perl Monks concerning the following question:
I've got the following subroutine working relatively well for debugging forking processes in a screen session.
I'd like to submit it to whoever is maintaining the perl5db.pl file, or at least to rt.cpan.org. But before I do that, I'd like to make it as robust as possible.
I wasn't sure where else to put this--and since this is a request for the collective wisdom to evaluate the code this seemed as best a place as any. Please let me know if you think this can go better elsewhere.
Please note the following:
And the test code I've been using it on:
Added check for failed fork as suggested
Harley J Pig