in reply to Re^7: Best way to kill a child process
in thread Best way to kill a child process
Some points about this:
- Problem happens in Debian, OpenSuse with perl5.10.1 and perl5.12.2
- There are no grandchildren.
- Does not seem to happen on single CPU, only multiple CPUs.
- Use ratio of 4 children per CPU and parent only maintains that number
- Children exit after 4 hours.
- Usually takes 20-24 hours for problem to happen!
I'm sure it's a timing issue, but I haven't been able to duplicate the problem in testing. I think it hangs in $SIG{CHLD} since when I set the child $SIG{CHLD} to 'IGNORE', the problem goes away. It could be perl, linux or my program. If I find a way to duplicate it, I'll let you know. Regards.
Thank you
"Well done is better than well said." - Benjamin Franklin
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^9: Best way to kill a child process
by Marshall (Canon) on Oct 18, 2011 at 00:44 UTC |
In Section
Seekers of Perl Wisdom