Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: fork question

by jonnyfolk (Vicar)
on Aug 08, 2011 at 15:15 UTC ( #919250=note: print w/ replies, xml ) Need Help??


in reply to Re: fork question
in thread fork question

Hi, thanks for your reply. Unfortunately that doesn't seem to be the problem - even increasing sleep to 5 just keeps hanging


Comment on Re^2: fork question
Re^3: fork question
by zentara (Archbishop) on Aug 08, 2011 at 17:54 UTC
    You might have better luck trying to close or permanently redirect all filehandles. It may even be that you need to close ALL filehandles which you might have open. Maybe in the intervening time since the script was working, and not, you added some code elsewhere which opened some filehandles? See how to close all files
    close(STDOUT);close(STDIN);close(STDERR);
    or even
    open STDIN, "</dev/null"; open STDOUT, ">/dev/null"; open( STDERR, ">>/path/to/logfile");

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2014-08-21 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (143 votes), past polls