I don't know the internals of signal handling well enough to know a definitive answer. However given that you are doing a pretty nasty stress test, I would not be surprised if you were able to smoke out very subtle races.
With that in mind, when I look in perlipc I notice that there is a comment in there about SysV which says that on BSD and POSIX systems you don't need to reset the signal handlers, but on SysV you both need to reset it, and you need to reset it after the wait. I don't know Unix well enough to know what Tom Christensen is referring to there, or whether current Linux and Solaris would show the POSIX or the SysV behaviour. So I would test removing the resetting of the handler entirely, or failing that I would try moving that resetting inside of your loop.
If neither of those helps and nobody else comes up with any useful suggestions, I would use the perlbug utility to submit a bug report to p5p. (If you do figure out the issue and see that there is a way to improve the documentation to make it clearer to other people, you can always send a patch to perlipc.pod in...)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.