On UNIX systems, signals are subject to rules defined by process groups, process group leaders, and controlling terminals. There are a number of write-ups on this you should read up on.

SIGTERM is a signal that gets propogated to a process group. The common example is if your shell goes away, then any processes it started also die. A process can disassociate itself from its parent process group and become a true daemon by making certain system calls. These are often UNIX-specific. At my first job (C programming) we wrote a daemonize function that hid these details. That code was lifted almost directly out of the book UNIX Network Progamming by Richard Stevens.


In reply to Re: wierd wierd behavior with SIGTERM and classes by steves
in thread wierd wierd behavior with SIGTERM and classes by shrubbery

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.