We're working on a home-grown search engine daemon here and are having some trouble with signal handling (under 5.6.1, and 5.8.x). We have two processes: the actual search daemon and a watcher. The watcher will automatically restart the search engine under various circumstances, e.g. when the search database has had sufficiently significant changes made to it, or when the search engine dies/is killed.

The problem is that in our testing it appears that some of the signals are not getting through to our handlers. It looks like something -- the perl engine maybe? -- is trapping and ignoring some signals before our handlers have a chance at them. The problem appears to be timing-related. When two signals are generated close together in time (on the order of milliseconds) the first signal never makes it to our code, but the second one does.

Does this scenario ring a bell with anyone out there?


In reply to Perl dropping signals? by DrWhy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.