Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: Daemon causing zombies under 5.8

by trs80 (Priest)
on Jan 13, 2003 at 22:48 UTC ( #226635=note: print w/replies, xml ) Need Help??

in reply to Re: Daemon causing zombies under 5.8
in thread Daemon causing zombies under 5.8

Thanks for the second set of eyes virtualsue. I had been over the $SIG{CHLD} = 'IGNORE' problem before when working on a different solution, I can't belive I didn't notice it was missing from this code.

Replies are listed 'Best First'.
Re: Re: Re: Daemon causing zombies under 5.8
by virtualsue (Vicar) on Jan 13, 2003 at 23:35 UTC
    You're welcome. I suggest you think about removing the recursion that Helter pointed out, too. I never noticed it when I skimmed your program the first time, because I was only looking for the cause of your zombie problem. Wouldn't it be much cleaner to structure your code like
    while (1) { process_files(); # loop(), essentially sleep $interval; }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://226635]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-12-18 03:31 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (466 votes). Check out past polls.