"be consistent" | |
PerlMonks |
Re^2: problems with fork from threadby Eliya (Vicar) |
on Mar 01, 2012 at 21:04 UTC ( [id://957316]=note: print w/replies, xml ) | Need Help?? |
I don't think this would help, because (according to my tests) it's the child processes that hang in a FUTEX_WAIT (as nothing seems to be calling FUTEX_WAKE again any more):
(filtered strace output) Also, the results vary structurally (not only quantitatively) with the number of threads started, whether you run the script under strace, etc., so I suspect it's some race condition issue. In other words, a varying number of children simply don't terminate, so there are no corresponding SIGCHLD signals. Unfortunately, I don't know enough about Perl's thread implementation to be of any real help here... So, until someone more knowledgable in the area has found sufficient motivation and time to tackle those issues, I'd stick with the common recommendation to stay away from mixing threads with fork.
In Section
Seekers of Perl Wisdom
|
|