Hey guys, it's the first time for me posting on Perlmonks, I really hope I didn't chose the wrong area to do this. If so, please let me know.

Well, I'm actual trying to get www.Gearman.org running and it seems like I have to fork on some point. When I was researching about forking how it works, and how it should be done, I read something about exit_value, signal_num and dump_core. Maybe a little code example here:

You can check all the failure possibilities by inspecting "$?" like this: $exit_value = $? >> 8; $signal_num = $? & 127; $dumped_core = $? & 128;

Best method to capture return code from system calls?

I know what bitwise is and how it works, but I don't get what this three variables should tell me. I mean I know what an exit_value is, but this signal num or dumped_core ... what does it brings to me to bitwise $? (= return value by a fork) with 127 or 128? Regards.


In reply to What means: exit_value , signal_num and dumped_core by Yaerox

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.